Prev: simulink geartrain?
Next: Inner class?
From: LETS on 19 Jan 2010 12:54 Dearl all, When I plot data with high values (~10^6), Matlab display only 4 digits of resolution (in the y axis, and in the cursor). I would like a greater precision, do you know if it is possible ? I looked at the plot and axes properties but I don't find anything, and the command format does not work for the plot (only the console). Thanks in advance Jérôme
From: Walter Roberson on 31 Jan 2010 00:45 LETS wrote: > When I plot data with high values (~10^6), Matlab display only 4 digits > of resolution (in the y axis, and in the cursor). I would like a greater > precision, do you know if it is possible ? Set your own yticklabel strings. set(TheAxis, 'yticklabel', ... reshape(num2str(get(TheAxis, 'YTick'),[],1), '%.6f')) You might find that the reshape is not needed.
From: Rune Allnor on 31 Jan 2010 01:00 On 19 Jan, 18:54, "LETS " <L...(a)matlab.com> wrote: > Dearl all, > > When I plot data with high values (~10^6), Matlab display only 4 digits of resolution (in the y axis, and in the cursor). I would like a greater precision, do you know if it is possible ? > > I looked at the plot and axes properties but I don't find anything, and the command format does not work for the plot (only the console). You can hack around that, as others have already suggested, but the plot resolution is limited by the screen resolution. Computer screens these days contains something like 2000 x 2000 pixels, meaning that an on-screen plot can show no more than about 2000 different values in any direction. The four significant digits in the plot axes reflect that fact. In other words, you will not actually gain anything by playing with the axis settings. If you want to study the details of the data in one point, you need to work around the screen limitation. You can do this in several ways: - Pick the x value form the screen and look up the corresponding data items from the y vector (the vector that was plotted, not the data in the figure) - You can use the GUI to select what range of the data to zoom in to, and then plot (*not* zoom!) that range of data. Rune
|
Pages: 1 Prev: simulink geartrain? Next: Inner class? |