Index exceeds number of array elements
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
expression1a = 3*cos(pi) - 2*log(3) + exp(4);
fprintf('The answer to 1A is: %.6f\n', expression1a);
I'm getting an "index exceesds number of array elements" error when I try to run this, even though it was working 5 minutes ago. What can I do to fix this?
0 Kommentare
Antworten (1)
Walter Roberson
am 9 Mär. 2024
You accidentally created a variable named log or named exp
3 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!