i'm writing a simple GUI that has to be capable of loading a file (this part i already managed), receiving two values from differents EditField and use those values on a logical indexing expression applied to the loaded file. Tipically a row selection on a matrix activated with a "Apply cut" button.
I'm using App Designer on Matlab R2020b.
I've already created all the button and fields. The file is correctly loaded via this function:
function LoadfileButtonPushed(app, event)
[file,path] = uigetfile('*.geo.txt');
disp('User selected Cancel');
disp(['User selected ', fullfile(path,file)]);
R=dlmread(fullfile(path , file), ";", 4, 0);
and the extremes of the cut are read by those functions:
function toEditFieldValueChanged(app, event)
to_value = app.toEditField.Value;
function FromEditFieldValueChanged(app, event)
from_value = app.FromEditField.Value;
Last, the function related to the "apply cut" button is:
function ApplycutButtonPushed(app, event)
My problem is that those function does not communicate, and the "Code View" function does not allow me to write a "main function" in which make those functions work together.
Any help would be very appreciated,
thanks in advance.