Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

I am having a little trouble with a matlab GUI that i am writing, with GUIDE. Its purpose is basically to display the bode diagram and step response of a transfer function, and allow the user to change controller parameters/time delays and such to see the affect. I wont post my code here, because it works perfectly. (unless anyone wants it)

The one thing i am having trouble with is changing the labels of the plots drawn by step/margin functions. My transfer functions are actually in minutes whereas the plot automatically labels the axis as seconds.

Margin looks like: 'Frequency (rad/sec)'

Step looks like : 'Time (sec)'

I have tried using xlabel('newLabel');

However what that just replaces the 'Frequency' Label with 'newLabel', whilst the (rad/sec) component remains.

This is the same deal for the step plot.

I have googled this extensively and cannot seem to find the answer :(

Thanks in advance,

Chris

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB changing axis labes on step()/margin() functions help required please

Loading...

Similar Threads - MATLAB changing axis | Date |
---|---|

Matlab -- how can i use a FOR loop if I have 2 variables changing | Oct 12, 2016 |

[Matlab] dynamic change in formatting crop not showing | Nov 11, 2014 |

Matlab - Change parameters of equation while plot displayed | Jun 16, 2014 |

MATLAB help for modelling with changing variables. | May 31, 2012 |

How to change the width between values on an axis in matlab? | Nov 2, 2010 |

**Physics Forums - The Fusion of Science and Community**