hi
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
0 commentaires
Réponses (3)
Walter Roberson
le 26 Mar 2012
This is not possible in MATLAB, as MATLAB arrays cannot be indexed at negative numbers or 0, but you want to index y at -3, -2, -1, and 0, along with 1, 2, and 3.
Geoff
le 26 Mar 2012
I think you mean this:
x = -3:3;
y = 2 * x + 3;
plot(x, y);
Image Analyst
le 26 Mar 2012
Don't forget to check your duplicate post in the newsgroup: http://groups.google.com/group/comp.soft-sys.matlab/browse_frm/thread/23153174886ed6bd?hl=en#
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!