From: Fenec on 3 Jun 2010 08:11 Hello, I wanted to plot a response for a step input to transfer function for a set point tracking and for a disturbance rejection in the same plot by I failled to do it. So I write in hope to find a solution for my request. The first response is for a set point tracking with a step funtion beging from zero and after 40 seconds the disturbance will be done injected by a step input also in the same plot and this later will start for the end os step end of the first step ( from 1) . Thank You .
From: sscnekro on 3 Jun 2010 11:21 Hi Fenec, I have no idea on what you are doing, but I just wonder do you have a problem with plotting the stuff (selected two or more variables in a single plot) or is your problem in fact first of all to compute your stuff?
From: dpb on 3 Jun 2010 12:32 Fenec wrote: > Hello, > I wanted to plot a response for a step input to transfer function for a > set point tracking and for a disturbance rejection in the same plot by I > failled to do it. > So I write in hope to find a solution for my request. ... Post pertinent (hopefully concise) portions of what you've done and where, specifically, you have a problem... --
From: sscnekro on 3 Jun 2010 14:44 Hi there, meanwhile I received message from Fenec to my e-mail account, with a picture attached and more or less the same description of the problem as he gave in the first post. First of all, let me say that it sufficed to reply to my post above, "Yes, I need to get more variables in a single plot". As this is, based on e-mail and attached image, what to my impression you want to do. To start, try something like plot(variable1, 'k', '-') hold on plot(variable2, 'k', '- -') Have a look on the plot function in Matlab documentation, to check out the properties, such as formatting your lines (solid, dashed, etc). Before that, however, you will need to compute your variables and that is probably your *problem as well*. For an instant guide to ML plotting see: http://web.mit.edu/acmath/matlab/IntroMATLAB/HandoutGraphics.pdf !PS I prefer not to receive e-mails in cases where the problem can be easily explained by posting to this newsgroup - this was certainly the case.
|
Pages: 1 Prev: Stack histograms in a 3d plot Next: Command to display what Matlab is doing? |