Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Using Scope Data from Simulink for the plot command

Subject: Using Scope Data from Simulink for the plot command

From: ralf_bartling@yahoo....

Date: 10 Apr, 2006 22:22:48

Message: 1 of 1

Hello NG,
I=B4m a new user and I have a question regarding the plot command.

I have made a simulation in simulink and I want to plot the data from
the simulink scope in the matlab environment.

For this reason I have used the following commands:

subplot(2,1,1); plot(ScopeData.time,ScopeData.signals(1,1).values)
subplot(2,1,2); plot(ScopeData.time,ScopeData.signals(1,2).values)

The plot commands produces to two curves in one figure. Both figures
have their own timescale (ScopeData.time) on the x axis.

Is it possible to plot the curves with one common timescale on the x

Many thanks


Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us