×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

The 'From Workspace' block in Simulink.

The 'From Workspace' block in Simulink.

The 'From Workspace' block in Simulink.

(OP)
I generated the variables: t=[0:0.1:10] and u=sin(t) in Matlab Workspace. Later, when using the From Workspace block in Simulink I put these to variables as [t,u] and I connect this block to a Scope, I do not see a sine plot, but a set of lines.  Why?

RE: The 'From Workspace' block in Simulink.

Your function is incomplete, you have u=sin(t) for t=0-10 by .1 increments.  Use your calculator to find out the sine of 0, and 10.  See what you get.  If you want to see the sine curve, plot it from 0 ro 2pi or some interval thereof.

Edson Campos
edsoncampos@earthlink.net
 
 

RE: The 'From Workspace' block in Simulink.

hello, I am sstuden of colombia, I looking about simulation of fiber optic in matlab. I wolud like to have information about this ,


thank

jorge

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources