Matlab传奇颜色不匹配线(2)

时间:2017-04-26 14:02:23

标签: matlab matlab-figure legend legend-properties

我遇到与此主题相同的问题:

Matlab legend colors don't match lines

但是,所提出的解决方案的变体似乎对我的代码没有影响......

我的代码是:

thickness = [0.0254,0.05,0.075,0.1,0.127];
for i = 1:5
    [~,t,u] = Shuttle(4000,501,thickness(i),21,'crank-nicolson',false,'597');
    T = u(:,1);
    figure(2);
    plot(t,T);
    y{i} = ['Thickness = ' num2str(x(end))];
    hold all
end

hold off
xlabel('Time (s)')
ylabel('Inner Surface Temperature (deg C)')
legend(y);

Shuttle基本上解决了具有某些初始条件的剖面温度,并绘制了u(:,1),它取温度的最终/终点值,并试图将其绘制成各种总长度。

0 个答案:

没有答案