Answered

3>2>1 returns logical 0?

I think the compiler probably solves this: (3>2)>1 ans = 0 i.e 1>1= 0

3>2>1 returns logical 0?

I think the compiler probably solves this: (3>2)>1 ans = 0 i.e 1>1= 0

5 years ago | 0

Answered

How can i create N copies of a vector based on nonzero values in that vector?

not elegant but: Original_Vector=[1 0 5 0 3]; Copy_1=Original_Vector; Copy_1(3)=0; Copy_1(5)=0; etc..

How can i create N copies of a vector based on nonzero values in that vector?

not elegant but: Original_Vector=[1 0 5 0 3]; Copy_1=Original_Vector; Copy_1(3)=0; Copy_1(5)=0; etc..

5 years ago | 0

Answered

Removing /eliminating bottom rows of a matrix

You named both matrices imat here. For 8x8 matrix named mat, for the first 5 columns and rows i.e. 5x5: mat(1:5,1:5)

Removing /eliminating bottom rows of a matrix

You named both matrices imat here. For 8x8 matrix named mat, for the first 5 columns and rows i.e. 5x5: mat(1:5,1:5)

5 years ago | 0

| accepted

Question

Rearranging filenames with extension .number (Ordering)

I've got batches of data that end in MRDC.number (MRA slices e.g. i3078011.MRDC.205) and I want to order them by filename extens...

6 years ago | 3 answers | 0

Question

Savitsky-Golay Filter Problem - Smoothing 3D line

I wanted to smooth a 3d line using the Savitzky-Golay filter, but for this example is seems to not work properly. Any ideas why,...

6 years ago | 1 answer | 0

Answered

Brushing a 3D isosurface

Brush it in plot3 and then isosurface plot

Brushing a 3D isosurface

Brush it in plot3 and then isosurface plot

6 years ago | 0

| accepted

Answered

Matlab dialog boxes control

can't you write a code inside the exe file that cancels the rest of the code if an incorrect input is recorded? Then you won'...

Matlab dialog boxes control

can't you write a code inside the exe file that cancels the rest of the code if an incorrect input is recorded? Then you won'...

6 years ago | 0

Question

Brushing a 3D isosurface

Is it possible to manually brush a 3D isosurface plot? I've attached the data, which you apply this function to plot it: ...

6 years ago | 1 answer | 0

Question

Using GUIDE - Callback to set of equations through multiple Objects

I've developed a GUI in GUIDE that at various points along a data analysis I need to access a set of equations [a set of calcula...

6 years ago | 1 answer | 0

Answered

Plotting colums from matrix

If your data array is like...... data(row,column) a = data(:,7:10) b = data(:,12) hold on plot(a) plot(b) ...

Plotting colums from matrix

If your data array is like...... data(row,column) a = data(:,7:10) b = data(:,12) hold on plot(a) plot(b) ...

6 years ago | 0

Question

Storing varying sized arrays in a single matrix

I want to store multiple different sized arrays from values 0-1 in a single matrix. # [0 , 1] # [0 , 0.5, 1] # [0 , 0.25, ...

6 years ago | 1 answer | 0

Question

3D Fit of Centreline

I've got a 3D data set (shown below) and I want to fit it with a line, the points of this line fit need to be equidistant apart....

6 years ago | 2 answers | 0

Question

specifing a colorbar parent/figure

How are you supposed to set the figure to which a colorbar is associated? At the moment, when I introduce a colorbar it automati...

6 years ago | 1 answer | 0

Question

Find 3d branch points - Remove smaller branches

Hello all, I want to *remove small branches* from this skeleton of a vessel, and to be left with just the main binary centerl...

6 years ago | 1 answer | 1

Question

Fill the interior of a cylinder surface - SURF - generated by parametric equations

I've generated a cylinder using the parametric equations: u = linspace(0,2*pi,50); v = linspace(0,2*pi,50); [u,v]...

6 years ago | 1 answer | 0

Question

Toolbar Guide GUI Editor - Tool Creation - Brush

How can I include a brush tool onto my GUI? This is as far as I get function uitoggletool_ClickedCallback(hObject, eventdat...

6 years ago | 2 answers | 0

Question

Store NaN and remove in for loop

*Essentially, I have two arrays of the same size, one contains some NaNs and I want to remove the corresponding points in the se...

6 years ago | 1 answer | 0

Question

Summation equations in matlab

How can I write this equation into Matlab? <</matlabcentral/answers/uploaded_files/23331/equation.png>> Is it equivalent t...

6 years ago | 3 answers | 0

Answered

volume enclosed by isosurface

Cleaned up image and counted the data points which represent voxels (of known value)..... easy

volume enclosed by isosurface

Cleaned up image and counted the data points which represent voxels (of known value)..... easy

6 years ago | 0

| accepted

Answered

Simulate circular sound using earphones

Check out this toolbox http://uk.mathworks.com/matlabcentral/fileexchange/19873-simple-audio-editor

Simulate circular sound using earphones

Check out this toolbox http://uk.mathworks.com/matlabcentral/fileexchange/19873-simple-audio-editor

6 years ago | 0

| accepted

Question

Centreline fitting in 3d (3D line fitting)

Hello everyone, I've got a *centreline data set* of a vessel and I want to connect the points to get an estimation of the *le...

6 years ago | 2 answers | 0

Question

volume enclosed by isosurface

How can I calculate the volume enclosed by an isosurface, in this case my isosufaces are generally irregular cylinders. I've ...

6 years ago | 2 answers | 0

Answered

RELATED to average of complex numbers

Separate into real and imaginary component arrays, divide, then recombine: av_real = (real_a + real_b + real_c) / 3; av_i...

RELATED to average of complex numbers

Separate into real and imaginary component arrays, divide, then recombine: av_real = (real_a + real_b + real_c) / 3; av_i...

6 years ago | 0

| accepted

Question

colormap/caxis edit roipoly

I would really appreciate help on this one, Using _roipoly_ to isolate data but when the function displays the initial image ...

6 years ago | 2 answers | 0

Question

Nested for loop fit with function

I understand for loops are not ideal for Matlab, but not sure how to avoid using them. In this case I have a matrix 'TE_ROI' tha...

7 years ago | 1 answer | 0

Question

3-term exponential fit

Hi, I want to fit a 3-term exponential function i.e. y = a*exp(-b*x) + c*exp(-d*x) + e*exp(-f*x) to get coefficients b...

7 years ago | 3 answers | 0

Question

Elemental matrix multiplication [NxN] and [1xn] into [NxNxn]

Hi, I want to multiply every element in *A*[NxN] by every value in *B*[1xn] to get *C*[NxNxn] Current code: for i = 1...

7 years ago | 1 answer | 0