********************************************************************
Question 1:
Subject: MatLab
Hello Dr. Gamba,
I'm trying input the solution, of the initial value problem, for the problem
13 (7th Ed) on MATLAB plotting.
t=linspace(-2,2);
y=(2*(t-1)*exp(2*t))+(3*exp(t));
??? Error using ==> *
Inner matrix dimensions must agree.
I tried to manipulate the expression, but nothing seems to work.
What should I do?
ANSWER: you must use a dot between the product of 2*(t-1) and exp(2*t)
as follows :
y=(2*(t-1).*exp(2*t))+(3*exp(t));
This way, Matlab enters the product for each expresion of t.
********************************************************************