your solution worked perfectly! thanks!
Another question regarding matlab plotting function is:
Is it possible to insert an overall title on the center top above all these subplots?
I know there is a function called “sgtitle” or “suptitle”, but neither worked with my version R2018a
best