Expression or statement is incorrect--possibly unbalanced
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Guillaume
2014-9-12
plot(n, xn);
4 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!