Re: creation of matrixes by use of automatically created names for structures



"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/
.



Relevant Pages

  • Re: [SLE] Linksys WMP54G & SuSE 9.3 Pro problems (was: Bombproof...)
    ... the problem is that my signal drops between my machines ... working with strong or weak signals. ... unless that too is a Linux system). ... looking for a "card that works well with Linux, ...
    (SuSE)
  • creation of matrixes by use of automatically created names for structures
    ... signals of a control system of some machines with their properties ... The goal is to compare the properties of the signals ... of the different machines. ...
    (comp.soft-sys.matlab)
  • Re: Signaling another machine
    ... signals are machine local. ... > machines in a sequence. ... trigger might be a better term. ... take a look at stem. ...
    (comp.lang.perl.misc)
  • [PATCH] utrace: remove indirections
    ... With utrace as the new singing dancing ... typedef struct utrace_get { ... * Called with the siglock held before dequeuing pending signals. ... * from seeing its child in TASK_STOPPED state when it waits with WSTOPPED. ...
    (Linux-Kernel)
  • Re: phase comparator
    ... > I would like to compare the phase of two 1MHz sinewave and/or ... > squarewave) signals and get a output voltage proportional to their phase ... Is this because an IQ modulator/demodulator ... "Phase Lock Loop Circuit Design" by Dan Wolaver is a good book. ...
    (sci.electronics.design)