Error dividing polynomials in plot
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul Robbins
am 29 Jan. 2019
Bearbeitet: madhan ravi
am 29 Jan. 2019
Trying to plot
from 3 to 10 but the graph shows blank. The numerator and denominator plot seperately so I think I must be telling matlab to divide in the wrong way. Here is my code:
from 3 to 10 but the graph shows blank. The numerator and denominator plot seperately so I think I must be telling matlab to divide in the wrong way. Here is my code:x3 = linspace(3,10,100);
piot(x3,(2*x3+1)/((3*x3-1).^(1/3)))
0 Kommentare
Akzeptierte Antwort
Kevin Phung
am 29 Jan. 2019
x3 = linspace(3,10,100);
y = (2.*x3+1)./((3.*x3-1).^(1/3));
plot(x3,y)
0 Kommentare
Weitere Antworten (1)
madhan ravi
am 29 Jan. 2019
Bearbeitet: madhan ravi
am 29 Jan. 2019
You just have to put ./ instead of / , it’s called element wise operation in MATLAB see https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html .
Remark: plot not piot.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!