Using a struct throughout a m-file s-function

2 vues (au cours des 30 derniers jours)
Mikael
Mikael le 12 Jan 2012
Hi
I'm writing a Level2 Matlab s-function and am having trouble with structures. I create a structure by making a call to a matlab function in the Start section as follows:
radarData = readRadarResimFiles();
I want to be able to use the structure radarData in the Outputs block but I get the following "Undefined function or variable 'radarData'." I have tried declaring radarData as global in a number of different sections of my s-function, but to no avail. Any suggestions would be appreciated.
I am using 2011b.
Thanks...
Mike

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by