Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
Mustafa Ahmed il 17 Nov 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
The question says write a matlab code to draw praph of F(t) in the interval 0 <= t <= 4, increase by 0.05

### Risposte (2)

Ameer Hamza il 17 Nov 2020
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 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Mustafa Ahmed il 17 Nov 2020
Modificato: Mustafa Ahmed il 17 Nov 2020
thank you

Andrei Bobrov il 17 Nov 2020
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 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Mustafa Ahmed il 17 Nov 2020
thanks

### Community Treasure Hunt

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

Start Hunting!

Translated by