How do you graph this function?
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nitishsai Nandineni
il 13 Nov 2019
Risposto: JESUS DAVID ARIZA ROYETH
il 13 Nov 2019
How do I graph (x,y) for the following information:
x[1]=10
x[2]=20
x[3]=30
x[4]=40
x[5]=50
x[6]=60
and so on
and
y[n]=(x[n]+x[n-1])*1/2
y[1]=(10+0)*1/2=5
y[2]=(20+10)*1/2=15
0 Commenti
Risposta accettata
JESUS DAVID ARIZA ROYETH
il 13 Nov 2019
solution:
n=10;
x=10:n:60;
y=(x+(x-n))*1/2;
figure;
plot(x,y,'r*-')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!