What about inserting a dummy value for data1:
if isempty(userInput) data1 = []; % <== inserted return end
Now catch this in the caller:
result = dataPull; if isempty(result) return; end app.data = result:
What about inserting a dummy value for data1:
if isempty(userInput) data1 = []; % <== inserted return end
Now catch this in the caller:
result = dataPull; if isempty(result) return; end app.data = result:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!