<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I would like to set cell elements from some matrix contents:<br>
Example: <br>
m=rand(4,4);<br>
c=cell(size(m));<br>
i=find(m>0.5);<br>
<br>
// Then every following syntax fails:<br>
c.entries(i)=m(i); // messerr = "not yet implemented"<br>
setfield(i,m,c); // messerr = not yet implemented<br>
// even when trying to straightforwardly (re)define:<br>
<font face="Courier New">--> c=makecell(size(m),m); // <br>
!--error 10000 <br>
makecell: Wrong input arguments: Dimensions given as first argument do
not match specified cell contents.<br>
at line 12 of function makecell called by : <br>
makecell(size(t),t)<br>
</font>// Same error with makecell(size(t),t(:))<br>
<br>
I would like to avoid building a string list with a for/end +
"makecell( )"<br>
and then eval() it.<br>
<br>
Any hint about that would be appreciated<br>
Thanks<br>
Samuel<br>
<br>
</body>
</html>