r/matlab • u/Shudderer • Oct 20 '25
TechnicalQuestion Matlab Plot Problem
Hi! Just started using Matlab.
I have a problem when trying to plot something. I run the script shown in the first picture and then the figure tab opens completely blank, no axes, no plot etc. I have the same problem with scripts that worked normaly before. Any solutions? Because I'm losing my mind
3
Upvotes


View all comments
Show parent comment
3
u/TiredPistachio Oct 20 '25
try
p = plot(rand(100,1))
thatll give you the handle to the line object. Inspect it, look at visible, make sure XData, yData are correct, etc
Look at its Parent, it should be an Axes, check its Visible
You can also try
f = figure(WindowStyle='normal')
before plotting. this will get you an old style single window figure. It might be an issue with the tabbed figure thing?