<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-2022-JP" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19154">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff text=#330000>
<DIV><FONT color=#0000ff size=2 face=Arial>Hello,</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>I heard about a specific tool-box for 
control design with Scilab-xcos developped for "classes préparatoires aux 
grandes écoles".</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Could someone tell me more about that 
?</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Thanks.</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>François WEISS</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=vogt@centre-cired.fr href="mailto:vogt@centre-cired.fr">Adrien 
  Vogt-Schilb</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@lists.scilab.org 
  href="mailto:users@lists.scilab.org">users@lists.scilab.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 07, 2011 9:15 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [scilab-Users] Using a cell 
  entry to access part of a matrix</DIV>
  <DIV><BR></DIV>Hi<BR><BR>why don't you just <BR><PRE wrap="">y(ii(1)) ?</PRE><BR>On 07/11/2011 02:43, Iai Masafumi ax wrote: 
  <BLOCKQUOTE cite=mid:4EB737B5.9050407@axelspace.com type="cite"><PRE wrap="">Hi,

Could anyone tell me if, in the codes below, there is any way to make
"y(II(1))" work without error, just like "y(ii)"? I wanted to access a
part of a matrix by using an entry of a cell. I think it is a pretty
intuitive way of using a cell.

//--------------------------
y=[100:110]
ii=[1 3 5 7];
jj=[2 4 6 8];
y(ii)   // OK. This is an ordinary way.

II=cell(2,1);
II.entries(1)=ii;
II.entries(2)=jj;

II(1)
y(II(1)) // <-- ERROR

y(II.entries(1)) // OK. But not as concise as I see the benefit of using
cells.
//--------------------------



Thanks,
Iai
</PRE></BLOCKQUOTE><BR><BR>
  <DIV class=moz-signature>-- <BR>Adrien Vogt-Schilb (Cired) <BR>Tel: (+33) 1 43 
  94 <B>73 77</B></DIV></BLOCKQUOTE></BODY></HTML>