Ask on export file name
古いコメントを表示
Hello, I am trying to export my plot to pdf and want the file_name to match with a variable string. I have tried different solutions, but unfortunetaly none of them works for. I saw it is not same as the save() command. Could you possibly help please ?
Here you can see the crucial part of my code, I tried different approaches here.
plot(x1,y1u,x1,y1d,x2,y2u,x2, y2d) %profil
hold on
plot(x1,y_p1(f,x,x1),x2,y_p2(f,x,x2)) %střední křivka
hold off
title('NACA',str)
xlim([0 1])
ylim([-0.5 0.5])
grid on
%Basicly the main problem, str is defined more upwards in my code
file_name = ['Profil_',str];
exportgraphics(gcf,'C:\Users\danie\OneDrive\Plocha\Matlab\Vzor\US_ISA\'+ file_name +'.pdf','ContentType','vector')
exportgraphics(gcf,file_name)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!