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 ]

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


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)

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]

© The Math Forum 1994-2015. All Rights Reserved.