Pass data from workspace to a function

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-04-25T09:49:23Z Indexed on 2010/04/25 9:53 UTC
Read the original article Hit count: 239

Filed under:
|
|

I created a GUI and used uiimport to import a dataset into matlab workspace, I would like to pass this imported data to another function in matlab...How do I pass this imported dataset into another function....I tried doing diz...but it couldnt pick diz....it doesnt pick the data on the matlab workspace....any ideas??

[file_input, pathname] = uigetfile( ...
{'*.txt', 'Text (*.txt)'; ...
'*.xls', 'Excel (*.xls)'; ...
'*.*', 'All Files (*.*)'}, ...
'Select files');

uiimport(file_input);
M = dlmread(file_input);
X = freed(M);

© Stack Overflow or respective owner

Related posts about matlab

Related posts about workspace