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!