Answered
Segmentation on brain tumour images??
Hi Serdar, Although you emailed me personally, the general etiquette around here is that all communication should go through ...

13 years ago | 1

Answered
i want my fun value to be zero and also should satisfy the constraints,i uesd fmincon command
Perhaps your optimization is getting stuck in a local minimum. Try a different set of initial guesses (x0)-- does this help? ...

13 years ago | 0

Answered
Segmentation on brain tumour images??
I would check out BlobsDemo on the File Exchange to get an overview of different segmentation approaches and how to calculate re...

13 years ago | 1

| accepted

Answered
Summation after looping
When you use the 'for' statement, you iteratively set ri to each of the values 0, 1, 2, 3. Thus ri only contains 3 after the lo...

13 years ago | 1

| accepted

Answered
String parsing with a delimiter
To expand upon that, you can do something like this to loop through the entire string. str = 'counter=10;count=7'; par...

13 years ago | 1

| accepted

Answered
String parsing with a delimiter
What is your desired output? You might be able to do this easier with regular expressions. doc regexp

13 years ago | 1

Answered
Convert .mat to .dcm (Matlab data to DICOM format)
doc dicomwrite

13 years ago | 1

Answered
NUMBER OF OCCURRENCE OF AN ELEMENT IN AN ARRAY
doc hist

13 years ago | 1

Answered
how to draw border
To draw the border, you can just use 'plot': w=[26 77]; x=[26 555]; y=[426 77]; z=[426 555]; Points = [w;x;z;y;...

13 years ago | 0

Answered
convert CT slice to 3d array
If you have the images in DICOM format, you can use 'dicomread' to read the images. help dicomread

13 years ago | 1

Answered
Read .txt file with header
The 'textscan' function should do the trick. doc textscan

13 years ago | 0

Answered
Merge vector and matrix based on values in the vector?
Use logical indexing: a=logical([0;1;1;0]); b=[1,13,20,15,1,6,12,0; 5,2,3,4,5,67,1,8; 1,13,14,15,1,6,8,0; 99,2,13,4,5,67...

13 years ago | 0

| accepted

Answered
Implement "browse button" for interface with Matlab? (gui)
For the browse feature: doc uigetfile Then set the 'String' property of the edit uicontrol to the filename returned from...

13 years ago | 0

Answered
How do I display all values on one line using disp function only when values are taken from a loop
The 'disp' function will automatically format each result onto a new line. Use the 'fprintf' function instead: fprintf('%d ...

13 years ago | 1

Answered
Change rows in a matrix so that no number is repeated more than 3 times in each column
I'm not sure what you are trying to do. I tested this script with the input matrix: 8 8 91 9 9 18 ...

13 years ago | 0

Answered
How to named/called the files: Yi.dat for i=1:nt ?
I didn't go through the entire code, but I think you want the line to be: csvwrite(['Y', num2str(nt), '.dat'],Y); By the...

13 years ago | 0

| accepted

Answered
its a big problem for me
Well the easiest way would be using eval, like str = '5+3-2*4'; %the text field answer = eval(str); %when you click th...

13 years ago | 0

Answered
equality operator between matrix and scalar
This is due to floating point precision errors, explained here: <http://blogs.mathworks.com/loren/2006/08/23/a-glimpse-into-floa...

13 years ago | 0

| accepted

Answered
Intersection of two 7x2 matrix
Ynv = intersect(Y,v,'rows')

13 years ago | 0

| accepted

Answered
CONVOLUTIONAL CODING and VITERBI DECODING
What is your budget for this consulting request?

13 years ago | 1

Answered
Plotting Bessel Function J0(2pi*(v1x)*r/c)
doc besselj

13 years ago | 0

Answered
plot boat heading
My guess is that you would need to take the sine and cosine of the boat heading. Something like: U = mag*cosd( track(1,1).h...

13 years ago | 0

Answered
Plotting results of three different data sets on same Plot
Depending on the format of the data sets, there are a variety of functions available to import the data. Look at the following ...

13 years ago | 1

Answered
Matlab Source Code
Well the standard question that is always asked in this circumstance is: what have you done so far? What _specific_ MATLAB probl...

13 years ago | 0

Answered
How to create a solid spherical cluster with random distribution of points
centroid = [0 0 0]; Rad = 2; %desired radius n = 100; %or however many points you want phi = 2*pi*rand(n,1); %ph...

13 years ago | 1

Answered
Sorting NaN
You could do something like this: a=[1 2 3;4 5 6;7 8 9;NaN NaN NaN]; a= sort(a,1,'descend'); in = any( isnan(a),2); ...

13 years ago | 1

Answered
Data Upload
Depending on the format of the file, this can vary substantially between trivial and impossible. Do you have any information abo...

13 years ago | 0

Answered
Efficiently setting lower axis limit
You could do it in two lines: xlim_curr = get(gca,'xlim'); set(gca, 'xlim', [0 xlim_curr(2)]); I've tried to do exact...

13 years ago | 1

Answered
Optimizing a 'for' loop
You algorithm isn't quite clear. What is the dimension of mean(M)? Why do you subtract M(i) from it each time? Can you clarify ...

13 years ago | 0

Answered
how to limit arrow length in 3D quiver plot?
For your situation, I would specify the length of the arrows directly, rather than letting Matlab perform the Auto-scaling of th...

13 years ago | 1

Load more