How to plot this ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Could anyone please assist me on how to plot the below piece of code,
residsumsq = norm(simout_b(:,1)-simout_a(:,1),2)^2;
tsumsq = norm(simout_b(:,1)-mean(simout_b(:,1)),2)^2;
R2 = 1-(residsumsq/tsumsq);
Also how to display the R square value on running the mfile. Please help.
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 16 Feb 2014
Your can't plot your code.
%example
simout_a=rand(10,2);
simout_b=rand(10,2);
residsumsq = norm(simout_b(:,1)-simout_a(:,1),2)^2;
tsumsq = norm(simout_b(:,1)-mean(simout_b(:,1)),2)^2;
R2 = 1-(residsumsq/tsumsq);
Your result are all scalar
Can you explain what you need to plot? maybe
plot(simout_a(:,1));
hold on;
plot(simout_b(:,1));
hold off
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!