Scaling of x-axis in GUI

I created a GUI for plotting step response of a control system transfer function. When I press push button to plot, plot is created. However the x-axis of plot obtained in GUI is scaled to about 40 times to that obtained by writing simple script for the same transfer function. How can I re-scale my plot?

2 Comments

dpb
dpb on 26 Jul 2013
What specifically is scaled 40X?
Doesn't seem like axis limits should be any different if the model data are the same. Have you checked for certain your GUI plot is actually the same numerically as the sample script? Perhaps you're not getting the data in that you think you are.
Can't tell anything specific w/o actual hard data/code to look at.
please put your actual code here. ur prblm can be solved

Sign in to comment.

Answers (0)

Asked:

on 26 Jul 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!