Are there xdata and ydata properties for fill command?

Are there xdata and ydata properties for fill command? If not what is suitable to change their x and y components because i want to set them. Thanks

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 2 Dez. 2014
x=[0 10 10 5 0 ]
y=[0 0 2 1 2 ]
h=fill(x,y,'r')
get(h,'xdata')
get(h,'ydata')

2 Kommentare

Ali
Ali am 2 Dez. 2014
Thank you but how can I use it to set my xdata and ydata for fill?
y=[0 0 2 5 2 ] % change y for example
set(h,'ydata',y)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by