Matlab report generator, problem with gui
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey together,
I have created a report with the report generator. Now i have a script where i run this report. everything works fine.
When i open this script via a button in my GUI, matlab wont find the variables.
i had saved the results in a .mat file and load the variables in the workspace in the script where the report is called.
I have tried to get the variables in the report from .mat file direct, instead of "from workspace" but nothing changed.
I dont know how i can fix it, and why the error comes?? can anybody help me? I hope you understand what i mean, thanks for helping!
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 20 Août 2012
%to get the variables don't use
load File
% instead use
data=load('File')
% if your FileName mat file contains for example the variables x y and z then you can get them from a structure variable File:
x=data.x
y=data.y
z=data.z
0 commentaires
Plus de réponses (2)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!