Call contents of one pushbutton to be used as content for another push button
1 view (last 30 days)
Show older comments
Commented: Ramesh Bala on 27 Aug 2021
I tried to import a text file via a pushbutton in app designer and it works.Now I want to use let's say 1st column of that file into another push button ?
I tried to use it like this but its not recognizing.Attaching the sample part code here.How to link the contents of pushbutton 1 to another ?
Thank you for your help in advance
% Button pushed function: Importfile
function ImportfilePushed(app, event)
[file,path] = uigetfile('*.txt');
T = load(file);
t1 = T(:,1); t2 = T(:,2);
% Button pushed function: UNIFORMButton
function UNIFORMButtonPushed(app, event)
%columns from the text file
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!