one can use decimal symbol and digit grouping symbol in matlab simulink graphics
Mostrar comentarios más antiguos
On Y axis instead of a rotational speed of 10000 rpm I want to be write 10,000 rpm!
Respuesta aceptada
Más respuestas (1)
Hey Octavian,
In order to format the tick labels for the plots for a MATLAB figure, you can use the "ytickformat" function with "fmt" input argument. Refer to the following documentation: https://www.mathworks.com/help/matlab/ref/ytickformat.html#bvayhxa-1-fmt
x = 1:5;
y = [1000 3000 5000 7000 10000];
plot(x,y,'-V')
ytickformat('%,4.4g')
As far as I understand, this functionality is not directly available in Simulink Scopes. However I would suggest you to save the data into MATLAB workspace and create the figure in MATLAB itself. Have a look at the following blog by @Guy Rouleau: https://blogs.mathworks.com/simulink/2010/06/22/how-to-customize-the-simulink-scope/
I hope this helps!
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


