Info

この質問は閉じられています。 編集または回答するには再度開いてください。

what is "Error using ==> mtimes Inner matrix dimensions must agree."

1 回表示 (過去 30 日間)
Mustafa Ahmed
Mustafa Ahmed 2020 年 11 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
The question says write a matlab code to draw praph of F(t) in the interval 0 <= t <= 4, increase by 0.05

回答 (2 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 17 日
Since 't' is a vector, use element-wise operators: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html. Replace / with ./ and * with .*
  1 件のコメント
Mustafa Ahmed
Mustafa Ahmed 2020 年 11 月 17 日
編集済み: Mustafa Ahmed 2020 年 11 月 17 日
thank you

Andrei Bobrov
Andrei Bobrov 2020 年 11 月 17 日
t = 0:0.05:4;
y = t.^2./ (t+1) + 3*exp(-4*t).*cos(5*t) - 2*exp(-3*t)./sin(2*t);
  1 件のコメント
Mustafa Ahmed
Mustafa Ahmed 2020 年 11 月 17 日
thanks

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by