<div dir="ltr">thanks...exactly what I was searching for.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-05 19:14 GMT+02:00 Nicolas Fezans <span dir="ltr"><<a href="mailto:nicolas.fezans@gmail.com" target="_blank">nicolas.fezans@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
just use:<br>
<br>
isfield(handles, 'I_RES')<br>
<br>
for that. You might want to check whether "handles" exists before<br>
making that test, if you want to be sure that your program won't abort<br>
execution with a non-treated error, if "handles" does not exist.<br>
<br>
<br>
Nicolas<br>
<div><div class="h5"><br>
On Tue, Apr 5, 2016 at 3:26 PM, Philipp Mühlmann <<a href="mailto:p.muehlmann@gmail.com">p.muehlmann@gmail.com</a>> wrote:<br>
> Is there a way to check if a variable within a structure is available?<br>
><br>
><br>
> Example:<br>
><br>
> There is a structure   handle  containing different variables.<br>
><br>
><br>
> e.g:<br>
><br>
> handles.status     // contain Status info of different pushbuttons --> in<br>
> fact status is a structure itself:  handles.Status.pb1; handles.Status.pb2;<br>
> handles.I_ORG   // contains original Image --> array<br>
> handles.I_RES    // contains resulting Image  --> array<br>
><br>
><br>
> Now I want to check if  handles.I_RES existst<br>
><br>
><br>
><br>
> exists('handles.I_RES' , 'a')    will return "0" even if handles.I_RES does<br>
> exist<br>
> isdef  ('handles.I_RES' , 'a')    will return "F" even if handles.I_RES does<br>
> exist<br>
><br>
><br>
> Thank you,<br>
> Philipp<br>
><br>
> --<br>
> In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.<br>
><br>
> There we have the salad.<br>
><br>
</div></div>> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
> <a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.</div><div><br></div><div>There we have the salad.</div></div></div>
</div>