My graph is blank
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Kevin Chapman
il 30 Gen 2019
Risposto: Star Strider
il 30 Gen 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);

0 Commenti
Risposta accettata
Star Strider
il 30 Gen 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 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!