how to rectify stem function error?

조회 수: 1 (최근 30일)
Shyam Sunder
Shyam Sunder 2020년 8월 15일
답변: Walter Roberson 2020년 8월 15일
n={-5,-4,-3,-2,-1,0,1,2,3,4,5};
u_n={0,0,0,0,0,1,1,1,1,1,1};
stem(n,u_n);
xlabel('time sample');
ylabel('amplitude');
Error: using stem (line 40)
Input arguments must be numeric, datetime, duration or categorical.
how to rectify this error?

채택된 답변

Walter Roberson
Walter Roberson 2020년 8월 15일
Your {} should be []
You are not going to be able to stem() a cell array.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by