Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I correct this error on Octav ?
1 次查看(过去 30 天)
显示 更早的评论
Hello
I have got this error on Octav:" trapz: X and Y must have same shape"
In the program I have : alpha_ks(:,km) = sum ( trapz(x,squared_derive(:,km) ) );
Where x= linspace (linspace(0,L,100);
And for km= 4 second_derive (:,km) = (((cos (beta(km)*L) + cosh(beta(km)*L))/( sin(beta(km)*L) - sinh(beta(km)*L))) * beta(km)^2 * (-cos(beta(km)*x) - cosh(beta(km)*x))+ beta(km)^2 *(-sin(beta(km)*x) - sinh(beta(km)*x)));
squared_derive (:,km) = second_derive(:,km).^2;
Taking into account that this program is correct in Matlab.
Please help me.
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!