필터 지우기
필터 지우기

Array indices must be positive integers or logical values.

조회 수: 1 (최근 30일)
kaze
kaze 2022년 10월 1일
댓글: KSSV 2022년 10월 2일
syms s;
t=10:0.1:100;
impulse=t==0;
f=32/(s-8);
y=subs(f,s,t);
impulse(y);
plot(y,[impulse]);
xlabel('x');
ylabel('y');
Array indices must be positive integers or logical values.
someone know how is this? i am starting with matlab i dont know why this happening.
  댓글 수: 4
Walter Roberson
Walter Roberson 2022년 10월 1일
impulse=t==0;
That assigns impulse to be a variable, overriding its existence as a function. Within the rest of the scope, you can no longer call impulse as a function.
KSSV
KSSV 2022년 10월 2일
You need to define impulse properly. What is impulse?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by