如何绘制这个T-square Fire Growth的图表

问题描述 投票:0回答:1

我正在编写一个函数来读取火类的标签和开发时间。但是,我只能描绘成长阶段。我如何绘制另一半是衰变阶段来完成图形,如下面的链接?

https://imgur.com/a/HbePbp0

以下是代码:

function Q3(c,t)
    if c=="S" then
        c=0.0029 
    elseif c=="M" then
        c=0.0117 
    elseif c=="F" then
    c=0.0469 
    elseif c=="U" then
    c=0.1876   
    end
t=0:10:t;
Q=(c)*(t^2);
plot(t,Q,'--r*')
xtitle("The Peak Heat Release Rate = "+string(c*T^2)+"kW")
endfunction

另一半是衰减率,它与增长率具有相同的比率。

scilab
1个回答
1
投票

我建议用这种方式绘制你的曲线:

function Q3(c,T)
    if c=="S" then
        c=0.0029 
    elseif c=="M" then
        c=0.0117 
    elseif c=="F" then
    c=0.0469 
    elseif c=="U" then
    c=0.1876   
    end
    t=linspace(0,2*T,1000);
    Q=c*(abs(t-T)-T).^2;
    plot(t,Q,'-')
    xtitle("The Peak Heat Release Rate = "+string(c*T^2)+"kW")
endfunction
© www.soinside.com 2019 - 2024. All rights reserved.