My graph is blank
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kevin Chapman
am 30 Jan. 2019
Beantwortet: Star Strider
am 30 Jan. 2019
The function is n=(m-10)/m for 0(less thab or equal to)m(less than or equal to)5
>> m=0:0.1:5;
>> n=(m-10)/m;
>> plot(m,n);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/202153/image.png)
0 Kommentare
Akzeptierte Antwort
Star Strider
am 30 Jan. 2019
You need to use element-wise division:
m=0:0.1:5;
n=(m-10)./m;
plot(m,n);
Replace / with ./ (note the dot operator), and it works.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Directed Graphs 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!