Re: creation of matrixes by use of automatically created names for structures
- From: Peter Boettcher <boettcher@xxxxxxxxxx>
- Date: Wed, 22 Feb 2006 09:23:48 -0500
"jan gaertitz" <dummy@xxxxxxxxx> writes:
Hello,
I'm using Mat lab R 5.1 and have the following problem:
I want to analyze the as *.txt file exported strings, which are
signals of a control system of some machines with their properties
like priority. The goal is to compare the properties of the signals
of the different machines.
For each signal I create a structure like signal(index).priority.
It's no problem to import the all data into a one big matrix. Before
I don't know, how many machines there are (how many signal groups I
have to compare with each other) and how many signals belongs to each
machine. Therefore I can't create the matrixes for each machine
before the analysation, I want to do that automatically by use of the
name of the imported signals.
I can automatically create the name (like machine_number_11_signals),
but than I can't use the automatically created name for a struct,
like machine_number_11_signals(index).priority.
You'll like cell arrays:
machine_signals{11}(index).priority
Or 2D indexing for the struct:
machine_signals(11, index).priority
--
Peter Boettcher <boettcher@xxxxxxxxxx>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/
.
- References:
- creation of matrixes by use of automatically created names for structures
- From: jan gaertitz
- creation of matrixes by use of automatically created names for structures
- Prev by Date: Re: cell to string
- Next by Date: Re: Slope of polynomial of n degree
- Previous by thread: creation of matrixes by use of automatically created names for structures
- Next by thread: diag command
- Index(es):
Relevant Pages
|
|