Convertion of maple program to matlab code

1 回表示 (過去 30 日間)
segun egbekunle
segun egbekunle 2017 年 7 月 7 日
編集済み: segun egbekunle 2017 年 7 月 8 日
The program below convert matrix A of n by n to another B. I need help to convert to Matlab code. New P :=Delete column(DeleteRow (New P,I),I): New X :=subsop(I =NULL, NewX): New C :=subsop(I = NULL, NewC): NewSize :=numelems(NewX); L2, D2, U2:=Matrix(2), Matrix(2), Matrix(2): If NewSize =2 then L2, D2, U2:=GetLDU(NewP);end if M2:= Multiply((L2 + D2)-1 ,U2) : C2:= Multiply((L2 + D2)-1 ,convert(NewC,Vector)) : P2:=Identity matrix(2) + M2) ; Soln:= Linear solve(P2, C2):for j from 1to 2do assign(NewX[j],Soln[j]: ): od: Return X End proc:

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by