Function not accepting all available x values
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
DONGUK KIM
am 23 Apr. 2020
Kommentiert: Sulaymon Eshkabilov
am 23 Apr. 2020
So I wrote a simple code to get a plot of a function
x = linspace(0,100,101);
y = 4*x.*(x+1) / (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2)
plot(x,y);
and for some reason y only comes out as a single value
Is there any reason why this might be happening?
0 Kommentare
Akzeptierte Antwort
Sulaymon Eshkabilov
am 23 Apr. 2020
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!