Question

Best way to share code within laboratory

I work in an academic research laboratory. Many of the PIs and RAs within the lab write a fair amount of Matlab code. I am tryin...

bijna 12 jaar ago | 4 answers | 2

Question

Fit model with 3 independent variables and many parameters to data?

Is it possible to use the fit() function to fit a model with 3 independent variables and many parameters (coefficients)? Reading...

bijna 12 jaar ago | 2 answers | 0

Question

Why does reversing an axis direction change shading properties?

I am working on an interactive GUI. Part of the GUI contains an axis which is used render 3D objects. I need to use a left-hande...

ongeveer 12 jaar ago | 2 answers | 1

Question

Image Mask to NURBS

I've got a 3D mask corresponding to an object in a volumetric image (e.g., a stack of CT slices). I would like to take this mask...

ongeveer 12 jaar ago | 0 answers | 0

Question

Non-linear piecewise fit using fittype() and fit().

Hello, I'm trying to fit some data to a rather complicated non-linear model: y=(1-(x/R)^2)^n where x is the independent va...

ongeveer 12 jaar ago | 1 answer | 0

Question

Correctly wrap data for spherical interpolation.

Say I've got n scattered data points defined in spherical coordinates, n=36; az=random('unif',0,2*pi,n,1); ele=random...

ongeveer 12 jaar ago | 1 answer | 2

Answered

Repeat element of a vector n times without loop.

Thanks guys, these all work perfectly!

Repeat element of a vector n times without loop.

Thanks guys, these all work perfectly!

ongeveer 12 jaar ago | 0

Question

Repeat element of a vector n times without loop.

Say I have a column vector x=[a;b;c]. I want to repeat each element n times to make a long length(x)*n vector. For example, for ...

ongeveer 12 jaar ago | 7 answers | 1

Question

improfile() through 3D image?

Hello, I have a 3D image set (i.e., a stack of CT images), I would like to get a line profile through this 3D image set simil...

meer dan 12 jaar ago | 1 answer | 0

Question

Setting LineWidth when exporting a figure using 'print'

I am trying to export a figure using the print command. The figure has several line plots on it. I have set the LineWidth proper...

meer dan 12 jaar ago | 0 answers | 5