Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Opening struct in function
Replies: 3   Last Post: Feb 26, 2010 10:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ben

Posts: 6
From: Netherlands
Registered: 2/18/10
Opening struct in function
Posted: Feb 23, 2010 9:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I have the following problem:
I have build a function. In the input of this function I have placed the following:
datainput: A set of data
name: Name of the structure, I would like to use
cell: exact position of the cell within the structure. In my case: 'data(1).posVK1.bocht'

In the file where I call this function I would like to have:

name = 'StrokeComparison.mat';
cell = data(1).posVK1.bocht;

and than use those terms in the function

[]=FgrowingDataSet(name, cell, datainput)

load(name);
destination = cell;

it does say: data(1,1).posVK1.bocht does not exist.

for example.

It doesn't work in my case, but Is this possible? If not, how can I make it work.
Thanks in advance.


Message was edited by: Ben



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.