Answered

In line 5,'The dimensions of the matrix must match.' Is displayed. How do I fix it???

% if true % code %end Bcenter(1,:) = [0 KB(1)]; you have Bcenter with only 2 rows, delete a ; as shown above

In line 5,'The dimensions of the matrix must match.' Is displayed. How do I fix it???

% if true % code %end Bcenter(1,:) = [0 KB(1)]; you have Bcenter with only 2 rows, delete a ; as shown above

environ 4 heures ago | 0

Answered

error when I run the code?

You need to define function with name _routh_hurwitz_ before calling it. See the resource in this link <https://in.mathw...

error when I run the code?

You need to define function with name _routh_hurwitz_ before calling it. See the resource in this link <https://in.mathw...

environ 6 heures ago | 0

Answered

Legends not matching colors

% if true % code %end Yu = rand(1000, 1); Yn = randn(1000, 1); plot(Yn,'g'), hold on, plot(Yu, 'r'), title('Random n...

Legends not matching colors

% if true % code %end Yu = rand(1000, 1); Yn = randn(1000, 1); plot(Yn,'g'), hold on, plot(Yu, 'r'), title('Random n...

environ 6 heures ago | 0

Answered

linkaxes of subplots with stackedplot

%if true % code %end linkaxes([hAx(1) hAx(2)],'x') Since you have four subplots you can specify which axes you wan...

linkaxes of subplots with stackedplot

%if true % code %end linkaxes([hAx(1) hAx(2)],'x') Since you have four subplots you can specify which axes you wan...

environ 11 heures ago | 1

Answered

2D plot of a function with two variables but one of the variables is set to assume precise values

Read _plot_ function <https://in.mathworks.com/help/matlab/ref/plot.html>

2D plot of a function with two variables but one of the variables is set to assume precise values

Read _plot_ function <https://in.mathworks.com/help/matlab/ref/plot.html>

environ 12 heures ago | 0

Answered

Error using mex Unknown file extension ' '. Matlab Ubuntu

Delete the space after comma, mex ('/mnt/D/D/ZJU Data/HDR/softwre/MatlabEXR/exrinfo.cpp',path1,path2)

Error using mex Unknown file extension ' '. Matlab Ubuntu

Delete the space after comma, mex ('/mnt/D/D/ZJU Data/HDR/softwre/MatlabEXR/exrinfo.cpp',path1,path2)

4 jours ago | 0

Answered

Gauge range is set wrong

Change the tick interval to something like 1 or smaller, you have set it to 5. May be the interval size is exceeding the max lim...

Gauge range is set wrong

Change the tick interval to something like 1 or smaller, you have set it to 5. May be the interval size is exceeding the max lim...

4 jours ago | 0

Answered

complex gaussian noise generation

Read this resource https://in.mathworks.com/help/comm/ref/awgn.html#:~:text=out%20%3D%20awgn(%20in%20%2C%20snr%20)%20adds%20wh...

complex gaussian noise generation

Read this resource https://in.mathworks.com/help/comm/ref/awgn.html#:~:text=out%20%3D%20awgn(%20in%20%2C%20snr%20)%20adds%20wh...

4 jours ago | 0

Answered

How to use the same equation to get shapes of different sizes and locations.

Try this angles = linspace(0, 2*pi, 500); radius = [40 25 15]; CenterX = [0 0 0]; CenterY = [40 105 145]; for i = 1:lengt...

How to use the same equation to get shapes of different sizes and locations.

Try this angles = linspace(0, 2*pi, 500); radius = [40 25 15]; CenterX = [0 0 0]; CenterY = [40 105 145]; for i = 1:lengt...

4 jours ago | 0

| accepted

Answered

I would like to know how I could plot a hyperbolic function of x and y.

Try the below. It works clear x = linspace(-10,10); y = real(2*sqrt((x.^2/9)-1)); yy = real(-2*sqrt((x.^2/9)-1)); for i = 1...

I would like to know how I could plot a hyperbolic function of x and y.

Try the below. It works clear x = linspace(-10,10); y = real(2*sqrt((x.^2/9)-1)); yy = real(-2*sqrt((x.^2/9)-1)); for i = 1...

4 jours ago | 0

Answered

The degree of function is unknown

Do you mean this expression ? syms x a Q=5*x^2 + a; polynomialDegree(Q) ans = 2

The degree of function is unknown

Do you mean this expression ? syms x a Q=5*x^2 + a; polynomialDegree(Q) ans = 2

5 jours ago | 0

Answered

Error from Volumetric Flowrate using Pressure Sensor & Arduino

c = c*c; this value gets bigger each iteration in loop , instead use square directly in volume flow rate eqn vf = a1 * sqrt...

Error from Volumetric Flowrate using Pressure Sensor & Arduino

c = c*c; this value gets bigger each iteration in loop , instead use square directly in volume flow rate eqn vf = a1 * sqrt...

5 jours ago | 0

Answered

The degree of function is unknown

use symbolic function toolbox, syms x a Q=5*x^(2+a) polynomialDegree(Q)

The degree of function is unknown

use symbolic function toolbox, syms x a Q=5*x^(2+a) polynomialDegree(Q)

5 jours ago | 0

Answered

Cos function with Array

cosine function takes inputs in radians, you need to multiply with pi/180, Both results are same, see below c = 1.5708; d =...

Cos function with Array

cosine function takes inputs in radians, you need to multiply with pi/180, Both results are same, see below c = 1.5708; d =...

5 jours ago | 0

Answered

plot a 3D function with changing variables

Use mesh function for better intrepretation y = linspace(100,300,4) v = [0 0.1 0.3 0.5] [v y] = meshgrid(v,y) mesh(v,y,f);

plot a 3D function with changing variables

Use mesh function for better intrepretation y = linspace(100,300,4) v = [0 0.1 0.3 0.5] [v y] = meshgrid(v,y) mesh(v,y,f);

5 jours ago | 0

Answered

How to turn off text interpreter when plotting timeseries objects

Use a space and backslash between ABC _ DEF when interpreting variables. Latex treats text after _ subscript ts = timeser...

How to turn off text interpreter when plotting timeseries objects

Use a space and backslash between ABC _ DEF when interpreting variables. Latex treats text after _ subscript ts = timeser...

5 jours ago | 1

Answered

Matlab fplot not working

Here is the change you need to look at in your code, then run again, function v = solv(x) S = 28; r = .04; o ...

Matlab fplot not working

Here is the change you need to look at in your code, then run again, function v = solv(x) S = 28; r = .04; o ...

5 jours ago | 0

Answered

How to plot an equation that uses multiple files of data

I see the graph with log scale on x axis See the code clear all; clc; load freq1.txt; load Rzero1.txt; load Lzero1.txt;...

How to plot an equation that uses multiple files of data

I see the graph with log scale on x axis See the code clear all; clc; load freq1.txt; load Rzero1.txt; load Lzero1.txt;...

5 jours ago | 0

| accepted

Answered

NUMERICAL INTEGRATION USING SIMPSONS

In the for loop use % if true % code %end y(k) = f1(k); Use a space btw @(x) ((1-x) ...) for the anonymous f...

NUMERICAL INTEGRATION USING SIMPSONS

In the for loop use % if true % code %end y(k) = f1(k); Use a space btw @(x) ((1-x) ...) for the anonymous f...

6 jours ago | 0

Answered

Plot columns against each other depending on user input from imported excel file.

See the solution in the below link <https://in.mathworks.com/matlabcentral/answers/621968-need-help-plotting-things-from-a-ta...

Plot columns against each other depending on user input from imported excel file.

See the solution in the below link <https://in.mathworks.com/matlabcentral/answers/621968-need-help-plotting-things-from-a-ta...

6 jours ago | 0

| accepted

Answered

Unable to perform assignment because the left and right sides have a different number of elements.

%if true % code %end for i = 2: 21 IRF_y1(i)= c +phi *IRF_y1 (i-1); end Then plot it again to see the result.

Unable to perform assignment because the left and right sides have a different number of elements.

%if true % code %end for i = 2: 21 IRF_y1(i)= c +phi *IRF_y1 (i-1); end Then plot it again to see the result.

6 jours ago | 0

Answered

How to plot this phase gradient function?

The results are not accurate, but you can work with wavlength and frequency vectors to workaround the shapes on left and right ...

How to plot this phase gradient function?

The results are not accurate, but you can work with wavlength and frequency vectors to workaround the shapes on left and right ...

6 jours ago | 0

Answered

How to plot this phase gradient function?

The equation you are using may not be right one. In the figure phase 2.jpg, there is an eqn lgend . ?? May be you should try t...

How to plot this phase gradient function?

The equation you are using may not be right one. In the figure phase 2.jpg, there is an eqn lgend . ?? May be you should try t...

6 jours ago | 0

Answered

Multiplication of very large 2D and 3D matrices

Use symsum function for summing series https://in.mathworks.com/help/symbolic/symsum.html

Multiplication of very large 2D and 3D matrices

Use symsum function for summing series https://in.mathworks.com/help/symbolic/symsum.html

6 jours ago | 0

Answered

Cannot view plotted graph after running script

It runs without errors. Are you showing right figure window ? Is it figure window generated by another script with an error ...

Cannot view plotted graph after running script

It runs without errors. Are you showing right figure window ? Is it figure window generated by another script with an error ...

6 jours ago | 0

Answered

Setting up a Deflection Plot

Try this, the way to plot F vs deflection clearvars clc r = 0.005 ; % [m] radius of bar P = 0.4; % [m] load app...

Setting up a Deflection Plot

Try this, the way to plot F vs deflection clearvars clc r = 0.005 ; % [m] radius of bar P = 0.4; % [m] load app...

7 jours ago | 0

| accepted

Answered

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones

See the fig attached, is the same figure you want, if i understand it right N = 4; % divides to 4 parts N1 = 10; a = lins...

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones

See the fig attached, is the same figure you want, if i understand it right N = 4; % divides to 4 parts N1 = 10; a = lins...

7 jours ago | 0

| accepted

Answered

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones

Try this . it works , change the value of N to number of equal parts you want N = 15; % divides to 15 parts a = linspace(0...

a circle is divided using 2 by inscribing 2 circles how can we divide three regions obtained from it into equal 15 zones

Try this . it works , change the value of N to number of equal parts you want N = 15; % divides to 15 parts a = linspace(0...

7 jours ago | 0

Answered

fluid mechanics: cylindrical flow in elliptical vortex

use the quiver plot to evaluate stream function, see resource below https://in.mathworks.com/help/matlab/ref/quiver.html

fluid mechanics: cylindrical flow in elliptical vortex

use the quiver plot to evaluate stream function, see resource below https://in.mathworks.com/help/matlab/ref/quiver.html

7 jours ago | 0

Answered

How to customize Legends?

Try this.. use handle structure as below figure p1 = plot(datax1,datay1 , 'ro') hold on plot(datax2,datay2, 'ro') plot(data...

How to customize Legends?

Try this.. use handle structure as below figure p1 = plot(datax1,datay1 , 'ro') hold on plot(datax2,datay2, 'ro') plot(data...

7 jours ago | 0

| accepted