Matlab report generator, problem with gui
10 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Azzi Abdelmalek
on 20 Aug 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 Comments
More Answers (2)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!