octave-maintainers
[Top][All Lists]
Advanced

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

Re: More help with getfields and orderfields


From: Steph Bredenhann
Subject: Re: More help with getfields and orderfields
Date: Tue, 21 Oct 2014 09:12:12 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Results on Matlab2014b and Win7

Steph


On 2014/10/21 00:12, Rik wrote:
10/20/14

Can someone try the following under Matlab?

s(2,2).a = 1;
s(1,1).b = 2;
s(:,2).a
getfield (s, {':', 2}, 'a')
ans =

     []


ans =

     1


ans =

     []


AND

s(2,2).a = 1;
s(2,2).b = 2;
s = resize (s, [1 0])
s2 = orderfields (s, {'b', 'a'})
size (s2)
Undefined function 'resize' for input arguments of type 'struct'.

Error in Untitled (line 3)
s = resize (s, [1 0])
 


Thanks,
Rik


Matlab 2014b on Win7

    


reply via email to

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