I have a question in the MATLAB

[IMG]http://img829.imageshack.us/img829/5...1211195338.jpg Uploaded with ImageShack.us[/IMG]

could you please help me ?

Printable View

- December 11th 2011, 09:26 AMnezarplot of a function of time a matlab question
I have a question in the MATLAB

[IMG]http://img829.imageshack.us/img829/5...1211195338.jpg Uploaded with ImageShack.us[/IMG]

could you please help me ? - December 11th 2011, 11:54 AMCaptainBlackRe: plot of a function of time a matlab question
- December 11th 2011, 02:50 PMnezarRe: plot of a function of time a matlab question
i don't no why he always give me error

Error in ==> nezar at 2

ii=3.*(1-e.^(-4.*t./1.3)); - December 11th 2011, 09:38 PMCaptainBlackRe: plot of a function of time a matlab question
- December 12th 2011, 04:04 AMnezarRe: plot of a function of time a matlab question
same thing give me error

- December 12th 2011, 07:32 AMCaptainBlackRe: plot of a function of time a matlab question
- December 12th 2011, 12:53 PMnezarRe: plot of a function of time a matlab question
i open m-file and paste

t=linspace(0,2,1000);

ii=3.*(1-e.^(-4.*t./1.3));

jj=3.*e.^(-4.*t./1.3).*(exp(0.5*4/1.3)-1);

kk=ii+(t>0.5).*(jj-ii);

plot(t,kk);

and save the file by name and in command page enter nezar he give me

>> nezar

??? Undefined function or variable 'e'.

Error in ==> nezar at 2

ii=3.*(1-e.^(-4.*t./1.3)); - December 12th 2011, 01:12 PMnezarRe: plot of a function of time a matlab question