The problem is related to subscript indices .

조회 수: 4 (최근 30일)
Abhishek mani  Shukla
Abhishek mani Shukla 2018년 9월 2일
답변: Image Analyst 2018년 9월 2일
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
Walter Roberson
Walter Roberson 2018년 9월 2일
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.
Abhishek mani  Shukla
Abhishek mani Shukla 2018년 9월 2일
thank you for suggestion i have got solution of my problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2018년 9월 2일
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.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by