Hi. i want to plot some thing like this picture how can i do this ?

Respuestas (2)

You may have to do this with two plot commands,
one to create a red line
one to create a gigantic square, which you can do it by plotting a single point in the position of the square.
you have to change the plot marker to some that produces a square, I'm not sure if the square is fulled or not. and increase the font size or marker size
search for plot and find marker and .... properties.
Give it a try

2 comentarios

i want a continious function not only rectangle look at this picture
david tito
david tito el 5 de Jun. de 2015
I search the code that can give me this graph

La pregunta está cerrada.

Preguntada:

el 5 de Jun. de 2015

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by