help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writing oct files


From: Luca Tagliacozzo
Subject: writing oct files
Date: Thu, 3 May 2007 16:48:28 +0200

I am not sure this is the place to post such a question.
I have a working .m file.
I would like to pass it to an oct file.
I have some major questions.
Imagine I have some n-dime array
G1(Chi,Chi,d)
G2(Chi,Chi,d)
and I want to create a n-d array given by:
 theta=zeros(Chi,Chi,d,d);
 
  for  i=1:d
    for j=1:d
      theta(:,:,i,j)=G1(:,:,i)*G2(:,:,j);
   
    
    endfor
  endfor


.
I should be able to address the 2dim subarray of theta to copy inside the values of the product G1,G2...


Have you any clue to what the C++ sintax would be?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]