how to make uiopen wait until it loads the variables it shoud have load?

2 views (last 30 days)
function buttonImport_Callback(~,~)
uiopen('C:\Users\kobi\Documents\MATLAB\.wav');
VDTMF %another m file that runs a function according to the two varialbes generated from the wav file
/////////////my question:
matlab runs VDTMF before it gets the two varialbes - (fs,data)from the UIOPEN, and that cuase the function that comes after to return me NULL
what can i do the prevent that?

Answers (1)

Jan
Jan on 23 Nov 2014
uiopen does not import variables from files. Use uigetfile instead and import the data by wavread.

Categories

Find more on Networks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!