help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set(gca, 'XLabel', 'foo') not matlab compatible


From: Michael Goffioul
Subject: Re: set(gca, 'XLabel', 'foo') not matlab compatible
Date: Mon, 30 Jan 2012 18:32:28 +0000

On Mon, Jan 30, 2012 at 6:25 PM, Muhali <address@hidden> wrote:
> The above command
>
> set(gca, 'XLabel', 'foo')
>
> works in octave as expected. It does not work in matlab, though, where it
> returns
>
>>> set(gca, 'XLabel', 'foo')
> ??? Error using ==> set
> Value must be a handle
>
> In matlab it seems one needs the more complicated command
>
>>> set(get(gca, 'XLabel'), 'String', 'foo')
>>>
>
> Is this a bug?

No, it's a feature. Matlab compatibility is still preserved: the
Matlab syntax works perfectly fine in octave.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]