problem with workspace matlab 2020b
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/447358/image.png)
I have a problem with workspace ı can not see variables while code is working perfectly also ı can not see any plotting
0 个评论
采纳的回答
Walter Roberson
2020-12-5
The code you posted is a function. Local variables for a function disappear after the function returns; you would have to put in a breakpoint before the end of the function to see the local variables.
Your posted code does not plot anything.
3 个评论
Walter Roberson
2020-12-6
x(i1)=(b(i1)-sumvalue)/a(i1,i1);
That is the only place in the code that you use lower-case x as a variable name.
semilogy(errorvector,"-ro",...
"LineWidth",2,...
"MarkedSize",10,...
"MarkedEdgeColor",
"b")
That needs a few changes:
semilogy(errorvector, "-ro",...
"LineWidth", 2,...
"MarkerSize", 10,...
"MarkerEdgeColor", "b")
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!