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...

12 years ago | 4 answers | 2

4

answers

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...

12 years ago | 2 answers | 0

2

answers

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...

12 years ago | 2 answers | 1

2

answers

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...

12 years ago | 0 answers | 0

0

answers

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...

12 years ago | 1 answer | 0

1

answer

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...

12 years ago | 1 answer | 2

1

answer

Answered
Repeat element of a vector n times without loop.
Thanks guys, these all work perfectly!

12 years 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 ...

12 years ago | 7 answers | 1

7

answers

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...

12 years ago | 1 answer | 0

1

answer

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...

12 years ago | 0 answers | 5

0

answers