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

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)

uiopen does not import variables from files. Use uigetfile instead and import the data by wavread.

Categories

Products

Asked:

on 23 Nov 2014

Answered:

Jan
on 23 Nov 2014

Community Treasure Hunt

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

Start Hunting!