Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
Math Forum
»
Discussions
»
Software
»
comp.soft-sys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Reading a binary C array in Matlab (reordering elements...)
Replies:
1
Last Post:
Mar 12, 2013 1:28 PM
|
 |
|
Luca
Posts:
77
Registered:
6/6/12
|
|
Reading a binary C array in Matlab (reordering elements...)
Posted:
Mar 12, 2013 1:28 PM
|
|
"Luca " <l.presottoRE@MOVE.campus.unimib.NOTit> wrote in message ! > Can anybody give me some clues? > > Thank you very much!
Got it! I write it here for the records, in case somebody gets stuck on google for hourse like I did. :-D :-D
It's just If in C I had: float Data[nx][ny][nz];
In matlab I should do:
data = reshape (data,nz,ny,nx); data = permute (data,[3 2 1]);
Pretty obvious indeed....
|
|
Date
|
Subject
|
Author
|
3/12/13
|
|
Luca
|
3/12/13
|
|
Luca
|
|
|