2

i have two signals coming from my model as output each of which contain x,y values. i want to plot both of them on single xy graph window. i am able to draw it on two xy graph window but how to merge them and draw on same xy window?

bhawesh
  • 1,310
  • 2
  • 19
  • 57
  • +1 Looking for the same thing — you should be able to mux all X signals, and mux all Y signals. SHOULD. This doesn't work. – kando Jul 12 '17 at 22:53

2 Answers2

0

I don't think it's possible to do what you want. The best alternative would be to log the data to the workspace and plot it as you want after the simulation has finished, using standard MATLAB commands.

am304
  • 13,758
  • 2
  • 22
  • 40
  • 1
    but i want to plot the graph while simulation is running – bhawesh Feb 01 '14 at 06:31
  • Like I said, I don't think you can do what you want easily. You'll have to use 2 different X-Y Scope blocks. It may be possible to do something custom with a MATLAB Function block, but I'm not sure how to go about it (you'll have to hold the plot and redraw it at each time step somehow). – am304 Feb 01 '14 at 09:23
0

by using XY scope , Plots second input (Y) against first input (X) at each time step to create an X-Y plot

naqme
  • 1