subplot in loop and save final figure, when clear all used after each loop
Mostrar comentarios más antiguos
Respuestas (1)
Jos (10584)
el 23 de Jun. de 2016
0 votos
Generally the use of clear all is not to be recommended, except at the beginning of a script. You can use CLEARVARS to free memory, which makes your code also much more readable.
4 comentarios
Bhowmik.U
el 23 de Jun. de 2016
Jos (10584)
el 23 de Jun. de 2016
subplot and clear have little to do with each other. Did you read the help and documentation?
Bhowmik.U
el 24 de Jun. de 2016
Jos (10584)
el 24 de Jun. de 2016
Use
subplot(4, 6, a)
rather than subplot(4,6, ii)
Categorías
Más información sobre Subplots 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!