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)

9 hours 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...

10 hours 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...

10 hours 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...

15 hours 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...

24 hours 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

1 day 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...

1 day 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)

1 day 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 =...

2 days 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);

2 days 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...

2 days 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 ...

2 days 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;...

2 days 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...

2 days 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...

2 days 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.

2 days 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 ...

2 days 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...

3 days 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

3 days 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 ...

3 days 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...

3 days 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...

3 days 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...

4 days 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

4 days 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...

4 days ago | 0

| accepted

Answered

generate wind rose with frequencies

Use the polarplot version or polarhistogram functions whichever is applicable clearvars clc close all ws1 = 0.5:0.1:1.54; ...

generate wind rose with frequencies

Use the polarplot version or polarhistogram functions whichever is applicable clearvars clc close all ws1 = 0.5:0.1:1.54; ...

4 days ago | 0

Answered

Plotting help. No line or points appearing on plot

You need to make time as vector. Then you can plot the trajectory, if i understand it right. See the code below, it plots xe v...

Plotting help. No line or points appearing on plot

You need to make time as vector. Then you can plot the trajectory, if i understand it right. See the code below, it plots xe v...

4 days ago | 0

| accepted

Answered

Unable to build the regression model.

Pass the second argument in *fitlm* function as matrix. % if true % code % end T = rand(2,3) lm = fitlm(train,T); ...

Unable to build the regression model.

Pass the second argument in *fitlm* function as matrix. % if true % code % end T = rand(2,3) lm = fitlm(train,T); ...

5 days ago | 0

Answered

how to make given plot smooth

Change the step size of vector yy yy=0:0.2:5*(length(final_integrand)-1); But ensure that final_integrand is also the same s...

how to make given plot smooth

Change the step size of vector yy yy=0:0.2:5*(length(final_integrand)-1); But ensure that final_integrand is also the same s...

5 days ago | 0

| accepted

Answered

How to convert Time function to Laplace function easily

see this resource for computing transfer function https://in.mathworks.com/help/control/ref/tf.html

How to convert Time function to Laplace function easily

see this resource for computing transfer function https://in.mathworks.com/help/control/ref/tf.html

5 days ago | 0