したがって、コードを実行すると、両方のプロットの凡例を取得することになっていますが、取得しているのは 1 つだけです。誰かが解決策を教えてください。両方のプロットを 1 つのグラフに表示したいのですが、個別の凡例コマンドが機能しません。コードは次のとおりです。
close all;clear all;clc
load stiffhless
figure
plot(FI*180/pi,ktot);
xlabel('\psi [deg]');ylabel('k');
title('Stiffness coeff. of flapping motion eq.')
xlim([0,360])
set(gca,'XTick',0:45:360)
grid on
legendCell=strcat('\mu=',strtrim(cellstr(num2str(mu_vect'))));
legend(legendCell)
hold on
load stiffarti
plot(FI*180/pi,ktot,'--');
xlabel('\psi [deg]');ylabel('k');
title('Stiffness coeff. of flapping motion eq.')
xlim([0,360])
set(gca,'XTick',0:45:360)
grid on
legendCell=strcat('\mu=',strtrim(cellstr(num2str(mu_vect'))));
legend(legendCell)