From: Jos on
Does anybody know how to change a line from the type 'line' to type 'area' using the set command?

Example:
%plot 2 lines
[o]=plot(rand(10,2));
%change first line to area type
set(o(1), 'type', 'area')

I get: Attempt to modify a property that is read-only.

And I want o(2) to remain the type 'line' and o(1) to become type 'area' while using set and not the property editor.

BTW I cannot use the area command right at once
From: us on
"Jos " <nospamhere(a)spamless.com> wrote in message <hu0fs3$si4$1(a)fred.mathworks.com>...
> Does anybody know how to change a line from the type 'line' to type 'area' using the set command?
>
> Example:
> %plot 2 lines
> [o]=plot(rand(10,2));
> %change first line to area type
> set(o(1), 'type', 'area')
>
> I get: Attempt to modify a property that is read-only.
>
> And I want o(2) to remain the type 'line' and o(1) to become type 'area' while using set and not the property editor.
>
> BTW I cannot use the area command right at once

well... this is simply NOT possible...

us