필터 지우기
필터 지우기

Expression or statement is incorrect--possibly unbalanced

조회 수: 2 (최근 30일)
Dick Rusell
Dick Rusell 2014년 9월 12일
댓글: Steven Lord 2017년 6월 12일
I'm trying to use plot, but I keep getting this error and I'm not sure why.
n = [0:99];
omega = 1.26 * pi;
xn = sin(omega*n);
plot = (n,xn);
xlabel = ('Time Index, n');
ylabel = ('Amplitude');
axis = ([0 99 -1 1]);
??? plot = (n,xn);
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
  댓글 수: 1
Stephen23
Stephen23 2017년 6월 12일
편집: Stephen23 2017년 6월 12일
plot = (n,xn);
xlabel = ('Time Index, n');
ylabel = ('Amplitude');
axis = ([0 99 -1 1]);
Wow... what dodgy youtube "tutorial" or random teenager's blog showed that incredibly bad syntax and variable naming? Is finding the MATLAB documentation so difficult?

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

채택된 답변

Guillaume
Guillaume 2014년 9월 12일
  댓글 수: 4
Dave Jack
Dave Jack 2017년 6월 12일
I have an same problem and I have no idea to solve it
Steven Lord
Steven Lord 2017년 6월 12일
Show a small segment of code with which you can reproduce the error and the full text (everything in red) of the error message you receive when you execute that small segment of code.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by