Info

This question is closed. Reopen it to edit or answer.

Problem trying to graph, getting error unbalanced

1 view (last 30 days)
jess ferguson
jess ferguson on 2 Apr 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
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')

Answers (1)

per isakson
per isakson on 2 Apr 2015
Works here after I replaced
Class_YMod _Sample3
by
Class_YMod_Sample3

This question is closed.

Community Treasure Hunt

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

Start Hunting!