I am creating a vector but its throwing some error. Example I create vector a= [3.4 -4.90 0.23], and when I access it a[1] it gives error.
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 7 Jun. 2021
You should not use square braces.. a[1] not allowed.
Use a(1)
a= [3.4 -4.90 0.23] ;
a(1)
a(end)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!