Hi, I have a plot for which I need to have the integrated values next to each legend. I mean, Can I use %0.2f which is used in fprintf statement to get the value of the variable used. Below is the code line of the legend, Hopefully I have explained it well enough..
% Code Line Begins here%
legend('Only Solar Generation[Integrated = %0.2f KW]','Only Wind Generation[Integrated = %0.2f KW]' ,'Load of community[Integrated = %0.2f KW]','Combined wind and solar power produced[Integrated = %0.2f KW]', 'Excess Energy Produced[Integrated = %0.2f KW]','Defecit Energy[Integrated = %0.2f KW]', Integrated_Just_solar_Farm_generation,Integrated_hourly_wind_power1,Integrated_Community_Hourly_load_demand,Integrated_comined_wind_and_solar_power,Integrated_Excess_energy_produced,Integrated_Defecit_Energy );%Code line Ends here%
Best Answer