Hi,

I have part of code which calls user defined function:

for i=1:(m+1)
    alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i));
    alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i));
    alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i));

    for j=1:k

        [xc,zc]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i));

            end

end

With this code I only manage to write last value of xc and zc.

When I change xc and zc to:
for i=1:(m+1)
    alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i));
    alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i));
    alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i));

    for j=1:k

        [MC(j,1,i),MC(j,3,i)]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i));

     
    end
end

I get error: hmops: Invalid hypermatrix insertion.

Can anyone help?

Regards,
Petar



--
View this message in context: 
http://mailinglists.scilab.org/Hypermatrix-and-user-defined-function-tp4033111.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to