From: Jose on 28 Jun 2010 14:02 "us " <us(a)neurol.unizh.ch> wrote in message <i0an19$7k3$1(a)fred.mathworks.com>... > "Jose " <jose.l.vega(a)gmail.com> wrote in message <i0am57$96k$1(a)fred.mathworks.com>... > > Sorry us, > > but it does not work with eval and sprintf when iI have this kind > > of variable proc1m...i am interested to supply 1 for a(x), where a=[2 3 4]... > > something like that: > > > > sprintf('proc%dm', a(1))); does not work... > > > > > > Any help? > > > > proc1m=uicontrol('parent',hfigure{i},'String', num2str(panel(i)),... > > 'Position', [240,400,60,20]); > > this is NOT what the faq suggests... > in your case, a CSSMer typically would do something like this > > proc=nan(N,1); % <- preallocation... > a=[...]; > for i=1:N > ... > proc(a(i),1)=uicontrol(...); % <- UICONTROLs return DOUBLEs... > ... > end > > us Sorry us, you do not understand me, or i do not explain correct it: I need proca(...)m...because every proc1m, proc2m, proc3m...are functions.... but I can write down numbers because these numbers are obtained from a(....) I hope it helps, thanks,
From: us on 28 Jun 2010 14:12 "Jose " <jose.l.vega(a)gmail.com> wrote in message <i0ao2u$hr2$1(a)fred.mathworks.com>... > > > > "us " <us(a)neurol.unizh.ch> wrote in message <i0an19$7k3$1(a)fred.mathworks.com>... > > "Jose " <jose.l.vega(a)gmail.com> wrote in message <i0am57$96k$1(a)fred.mathworks.com>... > > > Sorry us, > > > but it does not work with eval and sprintf when iI have this kind > > > of variable proc1m...i am interested to supply 1 for a(x), where a=[2 3 4]... > > > something like that: > > > > > > sprintf('proc%dm', a(1))); does not work... > > > > > > > > > Any help? > > > > > > proc1m=uicontrol('parent',hfigure{i},'String', num2str(panel(i)),... > > > 'Position', [240,400,60,20]); > > > > this is NOT what the faq suggests... > > in your case, a CSSMer typically would do something like this > > > > proc=nan(N,1); % <- preallocation... > > a=[...]; > > for i=1:N > > ... > > proc(a(i),1)=uicontrol(...); % <- UICONTROLs return DOUBLEs... > > ... > > end > > > > us > > > Sorry us, you do not understand me, or i do not explain correct it: > > I need proca(...)m...because every proc1m, proc2m, proc3m...are functions.... > but I can write down numbers because these numbers are obtained from a(....) > > I hope it helps, thanks, not really... firstly, this proc1m=uicontrol(...); % <- your example... is NOT a function(!?)... second, even if you WERE to create functions, you still could collect their handles in a CELL, for instance... us
From: Jose on 28 Jun 2010 14:20 "us " <us(a)neurol.unizh.ch> wrote in message <i0aolk$qqu$1(a)fred.mathworks.com>... > "Jose " <jose.l.vega(a)gmail.com> wrote in message <i0ao2u$hr2$1(a)fred.mathworks.com>... > > > > > > > > "us " <us(a)neurol.unizh.ch> wrote in message <i0an19$7k3$1(a)fred.mathworks.com>... > > > "Jose " <jose.l.vega(a)gmail.com> wrote in message <i0am57$96k$1(a)fred.mathworks.com>... > > > > Sorry us, > > > > but it does not work with eval and sprintf when iI have this kind > > > > of variable proc1m...i am interested to supply 1 for a(x), where a=[2 3 4]... > > > > something like that: > > > > > > > > sprintf('proc%dm', a(1))); does not work... > > > > > > > > > > > > Any help? > > > > > > > > proc1m=uicontrol('parent',hfigure{i},'String', num2str(panel(i)),... > > > > 'Position', [240,400,60,20]); > > > > > > this is NOT what the faq suggests... > > > in your case, a CSSMer typically would do something like this > > > > > > proc=nan(N,1); % <- preallocation... > > > a=[...]; > > > for i=1:N > > > ... > > > proc(a(i),1)=uicontrol(...); % <- UICONTROLs return DOUBLEs... > > > ... > > > end > > > > > > us > > > > > > Sorry us, you do not understand me, or i do not explain correct it: > > > > I need proca(...)m...because every proc1m, proc2m, proc3m...are functions.... > > but I can write down numbers because these numbers are obtained from a(....) > > > > I hope it helps, thanks, > > not really... > firstly, this > > proc1m=uicontrol(...); % <- your example... > > is NOT a function(!?)... > second, even if you WERE to create functions, you still could collect their handles in a CELL, for instance... > > us It is not a function,it is obvious us...i had a msprint here, but please can you answer my question?...I think it is simple for you. Thanks.
From: us on 28 Jun 2010 14:33 "Jose " > It is not a function,it is obvious us...i had a msprint here, but please can you answer my question?...I think it is simple for you. > Thanks. sorry, but i simply do NOT UNDERSTAND what you want... either you get your act together and come up with an unambiguous, SMALL example in plain ML language, which clearly shows your problem - or you'd have wait for another, really smart CSSMer, who does understand this conundrum... again, i'm sorry... us
From: Jose on 28 Jun 2010 14:39 Ok, not problem...it is a very stupid question..I'll solve it. Thanks for your time. "us " <us(a)neurol.unizh.ch> wrote in message <i0apt1$jdj$1(a)fred.mathworks.com>... > "Jose " > > It is not a function,it is obvious us...i had a msprint here, but please can you answer my question?...I think it is simple for you. > > Thanks. > > sorry, but i simply do NOT UNDERSTAND what you want... > either you get your act together and come up with an unambiguous, SMALL example in plain ML language, which clearly shows your problem - or you'd have wait for another, really smart CSSMer, who does understand this conundrum... > > again, i'm sorry... > us
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: plotting colors Next: Read Image from RAW (image data before demosaicking) |