save file and plot

2 visualizaciones (últimos 30 días)
abdullah qasim
abdullah qasim el 3 de Feb. de 2021
Comentada: abdullah qasim el 3 de Feb. de 2021
I have this code and want to save the "AverPr" value
After that, I want to load it up again and draw it
Please help me
'''''''''''''''''''''''
AverPr=mean(P_rec_dBm);
f=0:0.05:lx;
plot(f,AverPr,'r-*');grid on;
xlabel('x[m]');
ylabel('Average Power Distrbution');

Respuesta aceptada

DEEPAK Chekuri
DEEPAK Chekuri el 3 de Feb. de 2021
save('file_name' , 'AverPr') ; % this will save your Averpr to a file_name
load('file_name'); % loads back the file
make sure , you don't change the directory while loading the file .
  1 comentario
abdullah qasim
abdullah qasim el 3 de Feb. de 2021
thank you very much

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Optics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by