Info

此问题已关闭。 请重新打开它进行编辑或回答。

Problem trying to graph, getting error unbalanced

1 次查看(过去 30 天)
This is my code. It was created by my professor and it is supposed to lead to a logarithmic graph of the class data listed, but i keep getting an 'unbalanced or unexpected parenthesis or bracket' error in line 37. Can someone please help me?
Class_YMod _Sample3 = [250000
0.176
7.5535
2
10.9
5.26
10.9
10.9
3.1
3
0.78
9
17.7066
17.7066
25.5
13
95
532.2889
1869
85703.54
85703.54
85703.54
85703.54
154.809
189450
176737
176737
164030
164030
157670
185583
124.617
301300
250
75353
75353
6969100]';
%===
% Added plotting from Willis.
%===
Class_YMod _Sample3 = sort(Class_YMod _Sample3);
figure
handle_a = semilogy(1:length(Class_YMod _Sample3), Class_YMod _Sample3,'ko')
set(handle_a, 'markersize',6,'markerfacecolor','y')

回答(1 个)

per isakson
per isakson 2015-4-2
Works here after I replaced
Class_YMod _Sample3
by
Class_YMod_Sample3

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by