답변 있음

editing the JET colormap

You should be able to do something like this: imagesc(peaks(123)) cx = caxis; n_colors = 128 cmp = jet(n_colors); colorbar ...

editing the JET colormap

You should be able to do something like this: imagesc(peaks(123)) cx = caxis; n_colors = 128 cmp = jet(n_colors); colorbar ...

약 2달 전 | 1

| 수락됨

답변 있음

How can I check that a newly generated sequence is already in the existing structure list or not?

For example this can be used: intersect([1 2 3;1 3 2;2 1 3;2 3 1;3 1 2],[3 2 1],'rows') % %ans = % % 0x3 empty double matr...

How can I check that a newly generated sequence is already in the existing structure list or not?

For example this can be used: intersect([1 2 3;1 3 2;2 1 3;2 3 1;3 1 2],[3 2 1],'rows') % %ans = % % 0x3 empty double matr...

약 2달 전 | 0

답변 있음

2d interpolation from a non-uniform grid

No you can use griddata and scatteredInterpolant. You can do something like this: Zi = griddata(X(:),Y(:),Z(:),Xi,Yi); And you...

2d interpolation from a non-uniform grid

No you can use griddata and scatteredInterpolant. You can do something like this: Zi = griddata(X(:),Y(:),Z(:),Xi,Yi); And you...

약 2달 전 | 0

| 수락됨

답변 있음

How could I use MATLAB to solve for x with this equation, 0=a*x^(3)+b*x^(-1)+c.

This works perfectly fine: f = @(x ) -58.8*(550) + 0.5*37*0.002377*x.^3.*(0.02+0.062*((2*960)./(0.002377*37*x.^2)).^2); plo...

How could I use MATLAB to solve for x with this equation, 0=a*x^(3)+b*x^(-1)+c.

This works perfectly fine: f = @(x ) -58.8*(550) + 0.5*37*0.002377*x.^3.*(0.02+0.062*((2*960)./(0.002377*37*x.^2)).^2); plo...

약 2달 전 | 0

답변 있음

Please help me convert them into a function of theta

When you get such an error, your first action would be to look at the sizes of the variables you use: whos r wab L r theta Nex...

Please help me convert them into a function of theta

When you get such an error, your first action would be to look at the sizes of the variables you use: whos r wab L r theta Nex...

약 2달 전 | 0

답변 있음

ODE 45 range for the variables

If you want to start your ode-integration at an [x,T]-point of [0,298] you have to define your y0 like this: y0=[0 ; 298]; %ini...

ODE 45 range for the variables

If you want to start your ode-integration at an [x,T]-point of [0,298] you have to define your y0 like this: y0=[0 ; 298]; %ini...

약 2달 전 | 0

답변 있음

Matrix product and inversion speed up

My comment still seems relevant. A simple commandline test gives: tic,AA = ones(3e4,2)*(ones(2,3e4)*ones(3e4,1));toc % Elapsed...

Matrix product and inversion speed up

My comment still seems relevant. A simple commandline test gives: tic,AA = ones(3e4,2)*(ones(2,3e4)*ones(3e4,1));toc % Elapsed...

약 2달 전 | 0

답변 있음

Getting an unknown error on calculating Standard Deviation.

Your variable v is a uint8. Try: std(double(v)) HTH

Getting an unknown error on calculating Standard Deviation.

Your variable v is a uint8. Try: std(double(v)) HTH

약 2달 전 | 0

답변 있음

Evaluate the triple integral and sketch the given solid

Whenever you are faced with a problem to solve start trying to solve it with the methods at hand. 1, You surely know how to do ...

Evaluate the triple integral and sketch the given solid

Whenever you are faced with a problem to solve start trying to solve it with the methods at hand. 1, You surely know how to do ...

약 2달 전 | 0

답변 있음

How to make a double integration with numerical integration?

Why not use integral2 to integrate over 2-D domains - it can handle, at least, boundaries in the y-direction that are functions ...

How to make a double integration with numerical integration?

Why not use integral2 to integrate over 2-D domains - it can handle, at least, boundaries in the y-direction that are functions ...

약 2달 전 | 0

답변 있음

How to show a deformation of a sphere

Keep track of the x, y, and z-lims or the axis-limits. Something like this: tiledlayout(1,2); [X, Y, Z] = ellipsoid(0,0,0,1,1,...

How to show a deformation of a sphere

Keep track of the x, y, and z-lims or the axis-limits. Something like this: tiledlayout(1,2); [X, Y, Z] = ellipsoid(0,0,0,1,1,...

약 2달 전 | 0

| 수락됨

답변 있음

ODE system with variable parameter, Boundary conditions and domain

This could be done something like this: Dall = {0:0.1:1,0:0.1:2}; % however many domains you need etc Y0 = {[Tt01;Pt01;M01],[T...

ODE system with variable parameter, Boundary conditions and domain

This could be done something like this: Dall = {0:0.1:1,0:0.1:2}; % however many domains you need etc Y0 = {[Tt01;Pt01;M01],[T...

약 2달 전 | 0

| 수락됨

답변 있음

Integrate PDEPE solution wrt x

This rather straightforward method should get the job done (assuming you cannot get away with simply use trapz, or cumtrapz, but...

Integrate PDEPE solution wrt x

This rather straightforward method should get the job done (assuming you cannot get away with simply use trapz, or cumtrapz, but...

약 2달 전 | 0

| 수락됨

답변 있음

How to calculate |x|

abs(x) When you look for functions you should learn about the matlab-command lookfor, have a look at the help and documentation...

How to calculate |x|

abs(x) When you look for functions you should learn about the matlab-command lookfor, have a look at the help and documentation...

약 2달 전 | 0

답변 있음

Curve fitting of two different datasets with two different equations and parameters to compare

This is why I never use the fancy curve-fitting-gui-tool, but do it explicitly with fminsearch or lsqnonlin. That way I have mor...

Curve fitting of two different datasets with two different equations and parameters to compare

This is why I never use the fancy curve-fitting-gui-tool, but do it explicitly with fminsearch or lsqnonlin. That way I have mor...

약 2달 전 | 0

| 수락됨

답변 있음

How to solve exponential distribution equation using symbolic Matlab?

It helps the int if you explicitly tells what the range to integrate over is: int(f,0,inf) HTH

How to solve exponential distribution equation using symbolic Matlab?

It helps the int if you explicitly tells what the range to integrate over is: int(f,0,inf) HTH

약 2달 전 | 0

| 수락됨

답변 있음

Sturm-Liouville eigenvalues calculation

Have you checked the file-exchange contribution: discrete-orthogonal-polynomial. It solves this kind of problems numerically.

Sturm-Liouville eigenvalues calculation

Have you checked the file-exchange contribution: discrete-orthogonal-polynomial. It solves this kind of problems numerically.

약 2달 전 | 0

답변 있음

common tangent of two curves with vpasolve.

In your code you gove starting-points for the variable you search for. Perhaps vpasolve doesn't bother to look for all solutions...

common tangent of two curves with vpasolve.

In your code you gove starting-points for the variable you search for. Perhaps vpasolve doesn't bother to look for all solutions...

약 2달 전 | 0

| 수락됨

답변 있음

How to add arrows in plotted curves to point corresponding axis?

There are a number of arrow-contributions on the file exchange. These two are my favourites: arrow3, arrow, other contributions ...

How to add arrows in plotted curves to point corresponding axis?

There are a number of arrow-contributions on the file exchange. These two are my favourites: arrow3, arrow, other contributions ...

약 2달 전 | 1

답변 있음

How to use wiener filter?

If you read the help for deconwnr you see that there is a third input, NSR, for the image Noise-to-Signal-Ratio. Since the Wiene...

How to use wiener filter?

If you read the help for deconwnr you see that there is a third input, NSR, for the image Noise-to-Signal-Ratio. Since the Wiene...

약 2달 전 | 0

| 수락됨

답변 있음

Simulating lens tilt on image

OK, here's a two thirds (some reasonable-fraction) solution that computationally is not too shabby. In its current version it al...

Simulating lens tilt on image

OK, here's a two thirds (some reasonable-fraction) solution that computationally is not too shabby. In its current version it al...

2달 전 | 0

답변 있음

how to remove speckles from image?

Well the filtering you want to achieve is to keep structures with smaller spatial scales that have some magnitude above the spec...

how to remove speckles from image?

Well the filtering you want to achieve is to keep structures with smaller spatial scales that have some magnitude above the spec...

2달 전 | 0

| 수락됨

답변 있음

how to plot different markers in scatter plot

This seems to work: scatter(randn(9,1),randn(9,1),32,rand(9,1),'filled','d') For markers of your choise - you know better than...

how to plot different markers in scatter plot

This seems to work: scatter(randn(9,1),randn(9,1),32,rand(9,1),'filled','d') For markers of your choise - you know better than...

2달 전 | 0

답변 있음

How can I increase the vertical size of subplots?

You can manually adjust the subplot's axes position like this: sph = subplot(3,2,1); dx0 = 0; dy0 = -0.05; dwithx = 0.0; dw...

How can I increase the vertical size of subplots?

You can manually adjust the subplot's axes position like this: sph = subplot(3,2,1); dx0 = 0; dy0 = -0.05; dwithx = 0.0; dw...

2달 전 | 0

답변 있음

average filter in Matlab

Why not use imfilter (if you have the image-processing toolbox) or conv2 - both should do this task in one line. To your proble...

average filter in Matlab

Why not use imfilter (if you have the image-processing toolbox) or conv2 - both should do this task in one line. To your proble...

2달 전 | 0

답변 있음

Treatment G-code file

Maybe the easiest way it to loop through the text line-by-line and check if it contains the character 'Z' using strfind or finds...

Treatment G-code file

Maybe the easiest way it to loop through the text line-by-line and check if it contains the character 'Z' using strfind or finds...

2달 전 | 1

답변 있음

scatter plot with color gradient on y-values

That should be as easy as: scatter(data(1, :), data(2, :), 10, data(2,:), 'filled'); You can modify the scaling of the colour-...

scatter plot with color gradient on y-values

That should be as easy as: scatter(data(1, :), data(2, :), 10, data(2,:), 'filled'); You can modify the scaling of the colour-...

2달 전 | 0

| 수락됨

답변 있음

how to remove speckles from image?

If your solution is not to use a large apperture (Why? The example you've shown us seems to work for the large apperture.) then ...

how to remove speckles from image?

If your solution is not to use a large apperture (Why? The example you've shown us seems to work for the large apperture.) then ...

2달 전 | 0

답변 있음

how to plot cumulative normal distribution of matlab

If you have the statistics toolbox you have direct access to the cummulative distribution of a number of pdfs. Try to look at th...

how to plot cumulative normal distribution of matlab

If you have the statistics toolbox you have direct access to the cummulative distribution of a number of pdfs. Try to look at th...

2달 전 | 0

답변 있음

Plot trajectories of coupled nonlinear oscillator

Have a look at the search-results for: coupled nonlinear oscillator HTH

Plot trajectories of coupled nonlinear oscillator

Have a look at the search-results for: coupled nonlinear oscillator HTH

2달 전 | 0