Author Topic: Beginners help  (Read 934 times)

Offline nmxprime

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Beginners help
« on: June 06, 2011, 06:54:13 AM »
hi
i m very very new to MatLab.

i want to know how to use diary files, how to store my usage history to different diary files & how to view those files..

Also,
i got an error . In my m file, it shows me an error regarding the line
" z=1-exp(-0.2*t)"
i already declared variable t as "t=0:5:20;" & my error is

"subscript indices must either be real positive integers or logicals"

please help me....



Offline MastaMinds

  • Newbie
  • *
  • Posts: 2
  • Matlab Forum
    • View Profile
Re: Beginners help
« Reply #1 on: June 24, 2011, 10:11:23 AM »
I think you should try:
z=1-exp(-0.2.*t)
[/size]that is adding a dot before the multiplication not sure though

Matlab and SimuLink Development Forum

Re: Beginners help
« Reply #1 on: June 24, 2011, 10:11:23 AM »