The function plot doesn't work anymore, i tried to use the commands 'close all' and figure() before running my code but it doesn't show anything. For example,
clc, clear, close all
x=[1,2,3,4];
y=[2,3,2,1];
figure()
plot(x,y,'b-')
the plot comes out without a figure and it's gray.
Does someone know how to fix this?
Thanks in advance

Respuestas (1)

Image Analyst
Image Analyst el 29 de Abr. de 2022

0 votos

Works fine for me in r2022a and in MATLAB online:
clc, clear, close all
x=[1,2,3,4];
y=[2,3,2,1];
figure()
plot(x,y,'b-')
What appearance are you looking for exactly?
You don't have an m-file called plot.m do you? What does this show:
which -all plot

1 comentario

Lucio Antonio Rosi
Lucio Antonio Rosi el 29 de Abr. de 2022
I solved it by reinstalling matlab, i don't why it didn't work, i don't have any file named plot.m, but thanks anyway

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 29 de Abr. de 2022

Comentada:

el 29 de Abr. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by