indexing of stucture arrays in loops



Hi,

code like this:

observation.(property(i,:)) = [observation.(property(i,:)
[observation.(property(j,:))(:,k)]];

(where property contains variable names) gives an error - Missing
operator, comma, semicolon, or white space before the (:,k).

However, if instead if using 'observation.(property(i,:))' i type in
full 'observation.height' it allows the indexing (:,k)
Is there a way to get my code to work the first way?

thanks
.



Relevant Pages

  • Re: indexing of stucture arrays in loops
    ... gives an error - Missing ... operator, comma, semicolon, or white space before the. ...
    (comp.soft-sys.matlab)
  • Re: time stamp, file length
    ... How do i stretch both files to make it same lenghth assigning 0 or blank to data pts which are missing. ... you showed us has space, not comma, as the delimiter. ... Can you help me to read this .csv file ?properly so i can convert the first column into a string using datenum. ...
    (comp.soft-sys.matlab)
  • Re: American semicolons
    ... claim that Americans 'only use ";" to separate two things that would ... semicolon can be a strong comma as well as weak period. ...
    (alt.usage.english)
  • Re: Macro crashing on different computer
    ... >ConsecutiveDelimiter, Tab, Semicolon, Comma, Space, ... >FieldInfo, DecimalSeparator, ThousandsSeparator) ...
    (microsoft.public.excel.programming)
  • Re: Cannot multiselect programmatically?
    ... I am just using the semicolon to separate the items in the list (and to end ... > comma-delimitd list but the comma is not part of the list value. ... >> items in the listbox already selected by default when the form is loaded. ... How do I programmatically select multiple items in the list? ...
    (microsoft.public.fox.programmer.exchange)