Answered

Why intensity of the image has changed, after masking out image area (using binary mask)?

Actually it is just about displaying the image, if you check the values of im(60,65) and new_im(60,65) for im and new_im matr...

Why intensity of the image has changed, after masking out image area (using binary mask)?

Actually it is just about displaying the image, if you check the values of im(60,65) and new_im(60,65) for im and new_im matr...

4 years ago | 1

| accepted

Answered

K-means clustering - results and plotting a continuous curve

1. K-means is a clustering method, it's NOT a classification algorithm, but the way you can then use its output for association....

K-means clustering - results and plotting a continuous curve

1. K-means is a clustering method, it's NOT a classification algorithm, but the way you can then use its output for association....

4 years ago | 0

Answered

how to fill the black regions inside the white region? imfill() is not working.

imfill does not work because it thinks that your image is like this: <</matlabcentral/answers/uploaded_files/37222/Capture1....

how to fill the black regions inside the white region? imfill() is not working.

imfill does not work because it thinks that your image is like this: <</matlabcentral/answers/uploaded_files/37222/Capture1....

4 years ago | 1

Answered

Export Fourier series coefficient into workspace variables

a0 = fitobject.a0; a1 = fitobject.a1; b1 = fitobject.b1; w = fitobject.w;

Export Fourier series coefficient into workspace variables

a0 = fitobject.a0; a1 = fitobject.a1; b1 = fitobject.b1; w = fitobject.w;

4 years ago | 0

| accepted

Answered

Computing Dice Similarity Coefficient for a Volume?

If your segmented output image and your reference image are 3 dimensional logical matrices do this: common = (refSegment & o...

Computing Dice Similarity Coefficient for a Volume?

If your segmented output image and your reference image are 3 dimensional logical matrices do this: common = (refSegment & o...

4 years ago | 3

Answered

plot summation of shifted discrete signals

n=-4:2; y=[1,-2,4,6,-5,8,10]; maxShift = 10; % maximum shift that you may want, ...

plot summation of shifted discrete signals

n=-4:2; y=[1,-2,4,6,-5,8,10]; maxShift = 10; % maximum shift that you may want, ...

4 years ago | 0

| accepted

Answered

3D volume to 2D matrix conversion

another possibility: A = rand(20,22,815); % your matrix B = reshape(A,440,815)'; The output of this code is equal to Ma...

3D volume to 2D matrix conversion

another possibility: A = rand(20,22,815); % your matrix B = reshape(A,440,815)'; The output of this code is equal to Ma...

4 years ago | 0

Answered

¿How can I change letter colour?

Check this out Mira esto (google traduce esto) <http://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display...

¿How can I change letter colour?

Check this out Mira esto (google traduce esto) <http://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display...

4 years ago | 0

Answered

How to plot signal with unit step?

You can use heaviside function: n = -5:1:20; x = ((4/5).^n).*heaviside(n); stem(n,x) Bet be aware heaviside(0)=0.5

How to plot signal with unit step?

You can use heaviside function: n = -5:1:20; x = ((4/5).^n).*heaviside(n); stem(n,x) Bet be aware heaviside(0)=0.5

4 years ago | 1

| accepted

Answered

Why do I get the error message "error using open. Too many input arguments"?

What's the name of your mfile? change its name to for example test1.m , do you get the same error?

Why do I get the error message "error using open. Too many input arguments"?

What's the name of your mfile? change its name to for example test1.m , do you get the same error?

4 years ago | 0

Answered

Linkages other than Ward in evalcluster

Why don't you use <http://www.mathworks.com/help/stats/linkage.html linkage> or <http://www.mathworks.com/help/stats/cluste...

Linkages other than Ward in evalcluster

Why don't you use <http://www.mathworks.com/help/stats/linkage.html linkage> or <http://www.mathworks.com/help/stats/cluste...

4 years ago | 1

Answered

I can not solve non-linear equation using m.file only

Cut this part of the code from the mfile you atteched: x0=[0 0]; options = optimoptions('fsolve','Display','iter'); % Opti...

I can not solve non-linear equation using m.file only

Cut this part of the code from the mfile you atteched: x0=[0 0]; options = optimoptions('fsolve','Display','iter'); % Opti...

4 years ago | 1

| accepted

Answered

Find the max/min values within determined segments of a matrix

Actually you were right, MATLAB answers is directed to the programming side of the issue, I just wanted to know what you exactly...

Find the max/min values within determined segments of a matrix

Actually you were right, MATLAB answers is directed to the programming side of the issue, I just wanted to know what you exactly...

4 years ago | 2

| accepted

Answered

what is 'radii' in the 'genfis2' function?

To make it simpler, just focus on the effects that different amounts of randii have on your Fuzzy system. If you set radii as 1 ...

what is 'radii' in the 'genfis2' function?

To make it simpler, just focus on the effects that different amounts of randii have on your Fuzzy system. If you set radii as 1 ...

4 years ago | 0

| accepted

Answered

Problems in plotting a Sinc signal, applying a FFT with noise and then the IFFT.

You've got some errors in your code, for example, you defined x=fftshift(s) which is wrong. You also add a normally distributed ...

Problems in plotting a Sinc signal, applying a FFT with noise and then the IFFT.

You've got some errors in your code, for example, you defined x=fftshift(s) which is wrong. You also add a normally distributed ...

4 years ago | 0

| accepted

Answered

Image axis on four sides

You can use this: Im = imread('cameraman.tif'); imshow(Im); image(Im);

Image axis on four sides

You can use this: Im = imread('cameraman.tif'); imshow(Im); image(Im);

4 years ago | 0

Answered

Is it possible to call a pre-trained neural network as a function in another script?

Yes you can save your trained network as for example "net.mat" and later import that network and use "sim" function to get the r...

Is it possible to call a pre-trained neural network as a function in another script?

Yes you can save your trained network as for example "net.mat" and later import that network and use "sim" function to get the r...

4 years ago | 0

| accepted

Answered

how to create an random points in desired circle using rand function??

You need to generate points which have random angles smaller or equal to 2*pi and random radius smaller or equal to the circle r...

how to create an random points in desired circle using rand function??

You need to generate points which have random angles smaller or equal to 2*pi and random radius smaller or equal to the circle r...

4 years ago | 0

| accepted

Answered

Is there a way to browse parent folders of the current working folder?

I'm not sure if I got your question correctly, but have you tried cd? doc cd you can change your current folder whenever ...

Is there a way to browse parent folders of the current working folder?

I'm not sure if I got your question correctly, but have you tried cd? doc cd you can change your current folder whenever ...

4 years ago | 0

Answered

Saving pdf (png) with user adding the name

You can use this code inside the Callback function of your save button: [filename, pathname] = uiputfile({'*.pdf';'*.png';'*...

Saving pdf (png) with user adding the name

You can use this code inside the Callback function of your save button: [filename, pathname] = uiputfile({'*.pdf';'*.png';'*...

4 years ago | 0

| accepted

Answered

fixing the values in matrix when it come between 0 and 1

Thank you image Analyst, I just changed the code a little bit, I think this is what 4*4 wants: a = randi(5,5); while tru...

fixing the values in matrix when it come between 0 and 1

Thank you image Analyst, I just changed the code a little bit, I think this is what 4*4 wants: a = randi(5,5); while tru...

4 years ago | 0

Answered

Reading variables from workspace

If you want to save all the variables from workspace to a file named data.mat you just need this: save('data')

Reading variables from workspace

If you want to save all the variables from workspace to a file named data.mat you just need this: save('data')

4 years ago | 0

| accepted

Answered

How do I publish results with an input command?

publish(file,'evalCode',false)

How do I publish results with an input command?

publish(file,'evalCode',false)

4 years ago | 0

| accepted

Answered

restricting the number between limits

insert this into for loop: if (value > 0) && (value < 1) break; end

restricting the number between limits

insert this into for loop: if (value > 0) && (value < 1) break; end

4 years ago | 0

Answered

saving files in a loop with different names

you should pass the string of the name of your variable, use this: save(filename,'grouped');

saving files in a loop with different names

you should pass the string of the name of your variable, use this: save(filename,'grouped');

4 years ago | 0

Answered

How I can view the misclassified records and correct classified records in classification learner

Considering the very nature of knn classifier, your question is logically wrong. It has nothing to do with Matlab actually. If y...

How I can view the misclassified records and correct classified records in classification learner

Considering the very nature of knn classifier, your question is logically wrong. It has nothing to do with Matlab actually. If y...

4 years ago | 0

Answered

Find the center of specific picture area

That's because x1 refers to columns of the image and y1 refers to the rows of the image, so for plot you should write: plot(...

Find the center of specific picture area

That's because x1 refers to columns of the image and y1 refers to the rows of the image, so for plot you should write: plot(...

4 years ago | 0

| accepted

Answered

How do I make a code that will count the number of times the sign changes succesively through an array?

pos = DAX>0; changes = xor(pos(1:end-1),pos(2:end)); num = sum(changes)

How do I make a code that will count the number of times the sign changes succesively through an array?

pos = DAX>0; changes = xor(pos(1:end-1),pos(2:end)); num = sum(changes)

4 years ago | 1

| accepted

Answered

Is there a way to make matlab create variables of any number on its own?

you don't need to define 10 variables, just define one and use its dimensions as different variables. If new variables are in th...

Is there a way to make matlab create variables of any number on its own?

you don't need to define 10 variables, just define one and use its dimensions as different variables. If new variables are in th...

4 years ago | 0

Answered

K means clustering in DICOM files

It'll be better idea if you do feature extraction on your image before using kmeans, but If you simply want to perform kmeans on...

K means clustering in DICOM files

It'll be better idea if you do feature extraction on your image before using kmeans, but If you simply want to perform kmeans on...

4 years ago | 0