For Programmers: Free Programming Magazines  


Home > Archive > Matlab > October 2006 > Array of structures as an input to an embedded MATLAB function?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Array of structures as an input to an embedded MATLAB function?
Kristoffer Donhowe

2006-10-31, 7:11 pm

MATLAB release 2006b allows Simulink embedded MATLAB functions to
have buses as inputs and outputs. In the help documentation, I see
that it is possible to define an array of structures implicitly
within an embedded function. Is it possible, however, to have an
array of structures be an input (or output) for an embedded function?

I read in the Simulink.BusElement documentation that if the element
data type is a bus, it must have a dimension of 1. This would seem
to suggest that it is not possible to define a structure input to an
embedded MATLAB function that contains an array of structures, but if
anyone could confirm this, I would appreciate it.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com