Answered

How to curve fit an equation with sigma function

C = polyfit( sqrt( x.^2+y.^2) , Z, N)

How to curve fit an equation with sigma function

C = polyfit( sqrt( x.^2+y.^2) , Z, N)

23 days ago | 1

Answered

How can i determine the area in percentage of a clustered image?

Divide the membership of each cluster by the total number of pixels.

How can i determine the area in percentage of a clustered image?

Divide the membership of each cluster by the total number of pixels.

23 days ago | 0

Answered

Dimension of arrays being concatenated are not consistent.

Some things you urgently need to learn: https://www.mathworks.com/help/matlab/ref/dbstop.html https://www.mathworks.com/help/m...

Dimension of arrays being concatenated are not consistent.

Some things you urgently need to learn: https://www.mathworks.com/help/matlab/ref/dbstop.html https://www.mathworks.com/help/m...

23 days ago | 1

Answered

Plotting points in style [x1,y1] , [x2,y2], [x3,y3] and them plot all of them?

No, but you can certainly write your own wrapper for any of the plotting functions to give you the input syntax that you want.

Plotting points in style [x1,y1] , [x2,y2], [x3,y3] and them plot all of them?

No, but you can certainly write your own wrapper for any of the plotting functions to give you the input syntax that you want.

27 days ago | 0

Answered

Index exceeds array bounds

The only solution: https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html#responsive_offcanvas

Index exceeds array bounds

The only solution: https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html#responsive_offcanvas

27 days ago | 0

Answered

hi every one, i need to ask a question, thank you

A=double(A); A(logical(A))=B;

hi every one, i need to ask a question, thank you

A=double(A); A(logical(A))=B;

2 months ago | 0

Question

Can symbolic vectors (not vectors of symbols) be defined and manipulated in the Symbolic Math Toolbox?

I would like to define symbolic functions that are functions of vector-valued quantities, like syms A x f(x)=x.'*A*x where A ...

2 months ago | 1 answer | 0

Answered

Why does skeletonization sometimes reduce horizontal rectangles to single pixels?

Remember what bwskel is doing. It is peeling the outer pixels of the rectangles like an onion over and over again until it reach...

Why does skeletonization sometimes reduce horizontal rectangles to single pixels?

Remember what bwskel is doing. It is peeling the outer pixels of the rectangles like an onion over and over again until it reach...

2 months ago | 0

Answered

Translation for an ellipsoid ?

Is there anyway to do this such that later on I need the coordinates of the rotated followed by translated ellipsoid. You can d...

Translation for an ellipsoid ?

Is there anyway to do this such that later on I need the coordinates of the rotated followed by translated ellipsoid. You can d...

2 months ago | 0

Question

Nested Functions versus Global Variables

Why are nested functions better for sharing variables between workspaces than global variables? There doesn't seem to be much di...

2 months ago | 1 answer | 0

Answered

scatteredInterpolant in nonlinear system

In the first global declaration, etac is missing from the list. global Hm pe1 pe2 pe3 etae2 etae3 qmax1 qmax2 qmax3 %<--- add...

scatteredInterpolant in nonlinear system

In the first global declaration, etac is missing from the list. global Hm pe1 pe2 pe3 etae2 etae3 qmax1 qmax2 qmax3 %<--- add...

2 months ago | 0

Answered

Why does fplot think my function is not vectorized

Here's a workaround to trick fplot into doing the right thing.

Why does fplot think my function is not vectorized

Here's a workaround to trick fplot into doing the right thing.

2 months ago | 1

Answered

Correspondence between intrinsic axes and world axes for imref objects

Or is it j,i, and k like with meshgrid? It is this one, sad to say. You can check it like this M=50; N=40; P=30; ir = imref...

Correspondence between intrinsic axes and world axes for imref objects

Or is it j,i, and k like with meshgrid? It is this one, sad to say. You can check it like this M=50; N=40; P=30; ir = imref...

2 months ago | 0

| accepted

Answered

How to read images with positive integer? No imead()

I definitely don't get all zeros with imread. Problem solved? >> nnz(imread('C0039_100122_INDS.png')) ans = 4624 ...

How to read images with positive integer? No imead()

I definitely don't get all zeros with imread. Problem solved? >> nnz(imread('C0039_100122_INDS.png')) ans = 4624 ...

4 months ago | 0

| accepted

Answered

FFT, IFFT and phase shifting

Is this what you want Xf=fftshift(fft(y)); f=fs.*((0:N-1) -ceil((N-1)/2))/N; subplot(2,1,2) stem(f,abs(Xf)/length(y)); ti...

FFT, IFFT and phase shifting

Is this what you want Xf=fftshift(fft(y)); f=fs.*((0:N-1) -ceil((N-1)/2))/N; subplot(2,1,2) stem(f,abs(Xf)/length(y)); ti...

4 months ago | 0

| accepted

Answered

Branching points problem in binary image

[I,J]= find( bwmorph(BW,'branchpoints') );

Branching points problem in binary image

[I,J]= find( bwmorph(BW,'branchpoints') );

4 months ago | 0

| accepted

Answered

How do I replace missing data with other values?

isnan is the correct way to detect and replace nans. Rn=radi; Rn(isnan(radi))= ---- something else ----

How do I replace missing data with other values?

isnan is the correct way to detect and replace nans. Rn=radi; Rn(isnan(radi))= ---- something else ----

4 months ago | 0

| accepted

Answered

How can I register or rotate series of image in matlab

imregister or imregtform seems like a good choice.

How can I register or rotate series of image in matlab

imregister or imregtform seems like a good choice.

4 months ago | 0

| accepted

Answered

parallel computation for a for loop

parfor pi=1:NP*kkk Tempo1 = zeros( p(pi) ,1 ); Tempo1_M = zeros( p(pi) ,1); Tempo2 = zeros(q(pi) ...

parallel computation for a for loop

parfor pi=1:NP*kkk Tempo1 = zeros( p(pi) ,1 ); Tempo1_M = zeros( p(pi) ,1); Tempo2 = zeros(q(pi) ...

4 months ago | 0

| accepted

Answered

Error using trainNetwork. Unable to read file.

I think it is expecting more traditional types of image files like .jpg,.png, etc.. I think for .mat you need to specify a speci...

Error using trainNetwork. Unable to read file.

I think it is expecting more traditional types of image files like .jpg,.png, etc.. I think for .mat you need to specify a speci...

5 months ago | 0

| accepted

Answered

How to use a for-loop to find the onset (first element) of trials of zeros, ones and twos, in an array of sequences of zeros, ones and twos

No, we're not going to do your homework for you. Go away and leave us alone.

How to use a for-loop to find the onset (first element) of trials of zeros, ones and twos, in an array of sequences of zeros, ones and twos

No, we're not going to do your homework for you. Go away and leave us alone.

5 months ago | 0

Answered

Rotation of the circle (points)

Just add an increment to the th th = linspace(0,2*pi,10) + rotation_angle ;

Rotation of the circle (points)

Just add an increment to the th th = linspace(0,2*pi,10) + rotation_angle ;

5 months ago | 0

| accepted

Answered

FFT Peak at Zero

Apply fftshift to your spectrum to see it with DC centered in the plot. x=csvread('230.csv',1,0); rollSpectrum=ffts...

FFT Peak at Zero

Apply fftshift to your spectrum to see it with DC centered in the plot. x=csvread('230.csv',1,0); rollSpectrum=ffts...

5 months ago | 1

Answered

Solving compound linear optimization problem

I've never heard of a compound optimization problem but maybe this will help https://www.mathworks.com/discovery/multiobjective...

Solving compound linear optimization problem

I've never heard of a compound optimization problem but maybe this will help https://www.mathworks.com/discovery/multiobjective...

5 months ago | 1

Question

Is this a bug in lsqcurvefit?

When I run this simple test of lsqcurvefit (this is R2018a), I get errors. opts=optimoptions(@lsqcurvefit,'SpecifyObjective...

5 months ago | 0 answers | 1

Answered

invalid syntax at '=' . A '(' might be missing a closing ')'

if (f == 0) and same thing in this line if(~isinteger(NMAX) || NMAX == 0 || ischar(NMAX))

invalid syntax at '=' . A '(' might be missing a closing ')'

if (f == 0) and same thing in this line if(~isinteger(NMAX) || NMAX == 0 || ischar(NMAX))

5 months ago | 0

| accepted