how to modify displayed result
3 ビュー (過去 30 日間)
so i've got my code all functioning and all,how can i get matlab do display/calculate the divisions from sol (solution)? if possible i would like more response variants
%% Input data
m1=2; m2=2.5; m3=3; k1=10; k2=15; k3=20; g=9.81;
syms x1 x2 x3
[A,b]=equationsToMatrix([m1*g+k2*(x2-x1)-k1*x1 m2*g+k3*(x3-x2)+k2*(x1-x2) m3*g+k3*(x2-x3)],[x1 x2 x3]);
There seems to something wrong with the display fractional output (the code running feature is still being tested). It is the same as what you posted, so the conversion to double should also work for you.
その他の回答 (0 件)
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!