How to solve Index in position 1 exceeds array bounds (must not exceed 1).
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vishnuvardhan naidu tanga
am 18 Jun. 2020
Kommentiert: David Hill
am 19 Jun. 2020
Hello,
When I am trying to run my code in matlab 2020a version I am getting this error. but when I am running the same code in matlab 2018b version, it runs normally. why am i getting this error and how can i solve this error. Please guide me.
With regards,
6 Kommentare
Akzeptierte Antwort
David Hill
am 19 Jun. 2020
You could always store it as a vector in the size you need it.
p0_A_SOEC_INIT_out=p0_A_SOEC_INIT_out*ones(1,size_you_need);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!
