<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 18/09/2015 20:10, kootsoop a écrit :<br>
</div>
<blockquote cite="mid:1442599827049-4032868.post@n3.nabble.com"
type="cite">
<pre wrap="">I am thinking of associative arrays in Scilab:</pre>
</blockquote>
.<br>
It is called a <i>structure</i>, and keys are fields.<br>
aa("key1") = %pi<br>
aa("boo") = %t<br>
aa("pol") = (1-%s)^3<br>
aa("txt") = "Hi"<br>
<br>
<blockquote cite="mid:1442599827049-4032868.post@n3.nabble.com"
type="cite">
<pre wrap="">
and was wondering whether it's possible to either enumerate all the keys
("test", "test2") </pre>
</blockquote>
fieldnames(aa) // does it<br>
<br>
<br>
<blockquote cite="mid:1442599827049-4032868.post@n3.nabble.com"
type="cite">
<pre wrap="">or check whether a key exists?</pre>
</blockquote>
or(fieldnames(aa)=="thatKey") // does it<br>
<br>
Regards<br>
Samuel<br>
</body>
</html>