Request for test in Matlab

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Request for test in Matlab

Pantxo
Hi,

Can someone run the following snippet in Matlab and send back the returned values and eventual errors? The aim is to determine if Matlab allows image ydata to be [ymax ymin].

figure ();
h = image (rand (20, 20, 3));
yl = ylim (gca)
set (h, 'ydata', [20 1]); %error?
yd = get (h, 'ydata')
yl = ylim (gca)

Thanks,

Pantxo
Reply | Threaded
Open this post in threaded view
|

Re: Request for test in Matlab

José Luis García Pallero
No errors in Matlab 9.2.0.538062 (R2017a) under Linux. The output
(plus the random image) is

yl =

   0.500000000000000  20.500000000000000


yd =

    20     1


yl =

   0.500000000000000  20.500000000000000
El jue., 25 oct. 2018 a las 11:30, Pantxo Diribarne
(<[hidden email]>) escribió:

>
> Hi,
>
> Can someone run the following snippet in Matlab and send back the returned values and eventual errors? The aim is to determine if Matlab allows image ydata to be [ymax ymin].
>
> figure ();
> h = image (rand (20, 20, 3));
> yl = ylim (gca)
> set (h, 'ydata', [20 1]); %error?
> yd = get (h, 'ydata')
> yl = ylim (gca)
>
> Thanks,
>
> Pantxo



--
*****************************************
José Luis García Pallero
[hidden email]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

Reply | Threaded
Open this post in threaded view
|

Re: Request for test in Matlab

Pantxo


Le jeu. 25 oct. 2018 à 11:36, José Luis García Pallero <[hidden email]> a écrit :
No errors in Matlab 9.2.0.538062 (R2017a) under Linux. The output
(plus the random image) is

yl =

   0.500000000000000  20.500000000000000


yd =

    20     1


yl =

   0.500000000000000  20.500000000000000
El jue., 25 oct. 2018 a las 11:30, Pantxo Diribarne
(<[hidden email]>) escribió:
>
> Hi,
>
> Can someone run the following snippet in Matlab and send back the returned values and eventual errors? The aim is to determine if Matlab allows image ydata to be [ymax ymin].
>
> figure ();
> h = image (rand (20, 20, 3));
> yl = ylim (gca)
> set (h, 'ydata', [20 1]); %error?
> yd = get (h, 'ydata')
> yl = ylim (gca)
>
> Thanks,
>
> Pantxo



--
*****************************************
José Luis García Pallero
[hidden email]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

Thanks, does inverting the ydata (at "set (h, 'ydata', [20 1]);") flip the displayed image?

Pantxo

Reply | Threaded
Open this post in threaded view
|

Re: Request for test in Matlab

José Luis García Pallero
Yes. Attached are the figures. fig1.png is the figure after h = image
(rand (20, 20, 3)); and fig2.png is the one after the other commands
El jue., 25 oct. 2018 a las 11:55, Pantxo Diribarne
(<[hidden email]>) escribió:

>
>
>
> Le jeu. 25 oct. 2018 à 11:36, José Luis García Pallero <[hidden email]> a écrit :
>>
>> No errors in Matlab 9.2.0.538062 (R2017a) under Linux. The output
>> (plus the random image) is
>>
>> yl =
>>
>>    0.500000000000000  20.500000000000000
>>
>>
>> yd =
>>
>>     20     1
>>
>>
>> yl =
>>
>>    0.500000000000000  20.500000000000000
>> El jue., 25 oct. 2018 a las 11:30, Pantxo Diribarne
>> (<[hidden email]>) escribió:
>> >
>> > Hi,
>> >
>> > Can someone run the following snippet in Matlab and send back the returned values and eventual errors? The aim is to determine if Matlab allows image ydata to be [ymax ymin].
>> >
>> > figure ();
>> > h = image (rand (20, 20, 3));
>> > yl = ylim (gca)
>> > set (h, 'ydata', [20 1]); %error?
>> > yd = get (h, 'ydata')
>> > yl = ylim (gca)
>> >
>> > Thanks,
>> >
>> > Pantxo
>>
>>
>>
>> --
>> *****************************************
>> José Luis García Pallero
>> [hidden email]
>> (o<
>> / / \
>> V_/_
>> Use Debian GNU/Linux and enjoy!
>> *****************************************
>
>
> Thanks, does inverting the ydata (at "set (h, 'ydata', [20 1]);") flip the displayed image?
>
> Pantxo
>

--
*****************************************
José Luis García Pallero
[hidden email]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

fig1.png (17K) Download Attachment
fig2.png (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Request for test in Matlab

Pantxo


Le jeu. 25 oct. 2018 à 12:06, José Luis García Pallero <[hidden email]> a écrit :
Yes. Attached are the figures. fig1.png is the figure after h = image
(rand (20, 20, 3)); and fig2.png is the one after the other commands
El jue., 25 oct. 2018 a las 11:55, Pantxo Diribarne
(<[hidden email]>) escribió:
>
>
>
> Le jeu. 25 oct. 2018 à 11:36, José Luis García Pallero <[hidden email]> a écrit :
>>
>> No errors in Matlab 9.2.0.538062 (R2017a) under Linux. The output
>> (plus the random image) is
>>
>> yl =
>>
>>    0.500000000000000  20.500000000000000
>>
>>
>> yd =
>>
>>     20     1
>>
>>
>> yl =
>>
>>    0.500000000000000  20.500000000000000
>> El jue., 25 oct. 2018 a las 11:30, Pantxo Diribarne
>> (<[hidden email]>) escribió:
>> >
>> > Hi,
>> >
>> > Can someone run the following snippet in Matlab and send back the returned values and eventual errors? The aim is to determine if Matlab allows image ydata to be [ymax ymin].
>> >
>> > figure ();
>> > h = image (rand (20, 20, 3));
>> > yl = ylim (gca)
>> > set (h, 'ydata', [20 1]); %error?
>> > yd = get (h, 'ydata')
>> > yl = ylim (gca)
>> >
>> > Thanks,
>> >
>> > Pantxo
>>
>>
>>
>> --
>> *****************************************
>> José Luis García Pallero
>> [hidden email]
>> (o<
>> / / \
>> V_/_
>> Use Debian GNU/Linux and enjoy!
>> *****************************************
>
>
> Thanks, does inverting the ydata (at "set (h, 'ydata', [20 1]);") flip the displayed image?
>
> Pantxo
>


--
*****************************************
José Luis García Pallero
[hidden email]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

Many thanks, that's exactly what I needed to know.

Pantxo