|
I'm writing an application where I want to bring a matrix into the Matlab workspace so I can run algorithms against it. I've written the software so the user can preload the matrix either in Excel.txt(tab delimited) or Matlab.mat. I wanted to use uiimport to allow the user to mouse to the directory where they stored the data and select the .txt or .mat file that has the desired input data, which happens to be a matrix. Eventually I want to have this data_load to happen after a button push on my gui, but for now I'm trying to get it to work inside a simple Matlab function. I've tried the following code, but it returns the entire matrix in a 1x1 variable.
>>bob = uiimport; %browse, select file, etc....
>> whos
Name Size Bytes Class Attributes
bob 1x1 1740 struct
In my case, the variable "bob" should be a 102x2 matrix. None of the Matlab documentation on uiimport shows successful syntax. Any help would be appreciated. I am currently using Matlab 7.6.0(R2008a).
|