Creating an algorithm for a Simultaneous Equation
10 ビュー (過去 30 日間)
古いコメントを表示
Abdullahi Abubakar
2021 年 3 月 31 日
コメント済み: Abdullahi Abubakar
2021 年 3 月 31 日
3000x + 1000y = 35000 (1)
240x + 5y = 1665 (2)
Please can you help me create an algorithm that will keep increasing the value of 3000 by 20% (i.e 3000 + 20%*3000) and at the same time giving the corresponding results of "x" and "y".
Thank you in anticipation.
0 件のコメント
採用された回答
David Hill
2021 年 3 月 31 日
k=3000*(.2).^(0:10);%however long you want
for j=1:length(k)
A=[k(j) 1000;240 5];
b=[35000;1665];
out(j,:)=A\b;
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Numerical Integration and Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!