Info

此问题已关闭。 请重新打开它进行编辑或回答。

Convert muskingham equation to code

1 次查看(过去 30 天)
Tanush Reddy
Tanush Reddy 2022-11-27
关闭: DGM 2022-11-27
Convert this into matlab code
c1 = 2 ; c2 = 4 ; c3 = 5
J = [10 20 30 40 50]
O = same size as J
On+1 =c1*Jn+1 + c2*Jn + c3*On
help me with this code
c1= 2;
c2 = 4;
c3 = 5;
J = [10:10:50]
O = [I(1) 0 0 0 0 0 0 0 0 0]
n = 1:5
i = 2:6
O(i) = c1*I(i) + c2*I(n) + c3*O(n) %Probable error in c3*O(n) part as O is not update
%Should i use for loop ??
display(O)
COndition is O(1) should be same as J(1) and im not getting accurate answers with this code.. help me rectify this code and its mistakes

回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by