iam trying to make a function for graph

1 回表示 (過去 30 日間)
GROZO
GROZO 2022 年 1 月 12 日
編集済み: Cris LaPierre 2022 年 1 月 12 日
function D=MQ(a,b,c,x1,x2,q,w,e,x3)
x=(x1:0.1:x2);
for j=1:length(x)
M(j)=a*x(j)^2+b*x(j)+c;
end
y=(x2:0.1:x3)
for i=1:length(y)
M(i)=q*y(i)^2+w*y(i)+e;
end
figure(1)
fplot(@(x) M(j))
hold on
fplot(@(y) M(i))
hold off
grid on

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 1 月 12 日
編集済み: Cris LaPierre 2022 年 1 月 12 日

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by