From: Azrul on
hi,

i have a set of values like obtained from :

for damping=0.05:0.051:1
cumsim_acc_rk10=sqrt(cumsimpson1(x,a))
cumsim_sus_rk10=sqrt(cumsimpson1(x,z))
end

my question is, how do i plot the graph for

'cumsim_sus_rk10 vs cumsim_acc_rk10' ?

i have tried

plot(cumsim_sus_rk10,cumsim_sus_rk10); and

(cumsim_sus_rk10(0.05:0.05:1),cumsim_sus_rk10(0.05:0.05:1));

but none work. For the record, i have already obtained the value, its just that i couldnt plot the graph between these 2 values (cumsim_sus_rk10 and cumsim_acc_rk10)for each damping.

Thanks in advance :)

From: ImageAnalyst on
All you have are two scalar values. Make them arrays and then try to
plot them:

loopIndex = 1;
for damping=0.05:0.051:1
% Some how set x, z, and a so they vary with each loop iteration.
% Otherwise you'll get the same value each time!
cumsim_acc_rk10(loopIndex) = sqrt(cumsimpson1(x,a));
cumsim_sus_rk10(loopIndex) = sqrt(cumsimpson1(x,z));
loopIndex = loopIndex + 1;
end
plot(cumsim_acc_rk10, cumsim_sus_rk10, 'rs-');



From: Azrul on
thanks a lot mate .. it works :)
 | 
Pages: 1
Prev: ccs 3.1 and matlab
Next: voice conversion