why the legend show wrong lines ?
Show older comments
why is the legend of my plot showing the wrong data ? . I am doing plot of this file (DATA_LIM_43_892Khz ) . but for some reason it shows the wrong legend why ?
ADC_data_lim43=load('Data_LIM_43_892Khz');
f_RD_not=892.858e3
real_data_ADC=ADC_data_lim43.real_data_ADC;
I_real=real_data_ADC*(19.6e-3)/(100*15e-3); %%real current
real_data_IN_driver=ADC_data_lim43.real_data_IN_driver; %% real gate signal
t=(1/f_RD_not)*(1:length(real_data_ADC));%% time
figure(101);
plot(t,I_real,' red -- d '); %% plot--> of I_real
hold on ;
plot(t,43*(19.6e-3)/(100*15e-3),' black '); %% plot--> of boundery limit
hold on ;
plot(t,100*(19.6e-3)/(100*15e-3)*real_data_IN_driver,' green -- d '); %% plot--> real gate signal
title([' I_1=' num2str(43*(19.6e-3)/(100*15e-3)) '[A]']);
ylabel('I[A]');xlabel('time[Sec]');
legend ('I_{real}','boundery limit','real gate signal');

as you can see the legend show for some reason wrong data, is this a a bug of matlab ?
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!