I already have timearray and dt, that is 0:dt:length(tarray)dt-dt. I want to discrete it and use ifft to get correspond time series. I'd like a simple solution please.not something like re-writing the plot command. I have a function in the frequency domain k(w). My code contains sample data to demonstrate a figure with subplots can be saved and opened later for additional plots. You also need to hold on after each subplot and hold off before moving to the next subplot. How do I save the axis properties so I don't have to keep calling xlabel, etc in the loop? I've tried newplot, setting the Nextplot property, etc to no avail. subplot (abc, 'NextPlot','add') for each subplot case. subplot(3,1,2) else subplot(3,2,3) end hold on title('state - x2') plot(steps,x(:,2), 'b', 'Linewidth',0.8) grid on ylim(-0.5 5.5) xlim(steps(1) steps(end)) hold off input u if plotnoise 0 subplot(3,1,3) else subplot(3,2,5) end K 0.2858 -0. Now, (hold off) destroys all axis properties. In the loop, I want to update both A and B with NEW plots, but I want the axis labels, and xlim and ylim to stay the same, WITHOUT having to call xlabel, xlim, etc every iteration. I (hold on), make several plots to B, then I (hold off), then start iterating. I have a plot window, broken up into two subplots, lets call them A and B, which have different labels and limits. Matlab question: this might be really simple but I can't figure it out.I'm pretty new.
0 Comments
Leave a Reply. |