我正在求解一個線性方程組。我想輸出變量與他們各自的解決方案,顯示小數(雙)。 [A,B] = equationsToMatrix(eqs,vars);
res = [transpose(vars) double(linsolve(A,B))];
的transpose(vars)值是: Ax
Ay
Az
Md
Me
和double(linsolve(A,B))值是: -75
45
for m = 60:70; %for m's values in the range of 60<m<70%;
n((m-59))=m; %create an array of m's values and store the array under n
y1((m-59)) = (14*35)/(m*9.8); %for m's current value