Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

3D array delimiters - Matlab

Status
Not open for further replies.

Old Nick

Advanced Member level 1
Advanced Member level 1
Joined
Sep 14, 2007
Messages
479
Helped
68
Reputation
136
Reaction score
18
Trophy points
1,298
Activity points
4,243
3d array in matlab

Hi,

I'm writing some data aquisition code in C, and have been doing so sucessfully, creating 2D arrays - writing them to a text file an opening them with matlab for processing.
When creasting the text file in C i use \t to destinguish between columns and a \n to identify a new row.
My question is, what does matlab look for to designate a 3rd dimension?

I can't seem to find this info anywhere!

Cheers,

Nick
 

As far as I know Matlab doesn't support 3rd array directly from ascii files.
but you can do it in two or three diffrent files.

for examples:

A=load('firstDim.txt');
B=load('secondDim.txt');
C=load('ThirdDim.txt');

vect=cat(3,A,B,C);
 

    Old Nick

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top