The problem is related to subscript indices .
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have problem in particular section of my code for that this type error is showing continuously.My code is
t=c(type);
y1=0.78*t*(k)^2*(l)*L;
It is showing for 'type' i am not able to remove this error.
6 Kommentare
Walter Roberson
am 2 Sep. 2018
At the command line, command
dbstop if error
and then run your code. When it stops with that error, show us
class(type)
size(type)
type
type - round(type)
The last of those tests the possibility that type is not exactly an integer.
Antworten (1)
Image Analyst
am 2 Sep. 2018
type() is a built in MATLAB function, and unless you overrode it intentionally (a bad idea), then you should not use it as the name of your variable.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!