user to name and save text file

1 view (last 30 days)
caroline bourn
caroline bourn on 6 Apr 2021
Edited: Stephen23 on 6 Apr 2021
hi everyone. i have this code at the moment
for i =1:length(pts_r)
headers = {'mean_AP','Standard_dev_AP','mean_ML', 'Standard_dev_ML','resultant_pathlength','AP_velocity', 'ML_velocity'};
header_walk{i} = strcat('right_step',num2str(i));
walk{i} = table(ave_xlocation_r(i), standard_dev_AP_right(i) , ave_ylocation_r(i),standard_dev_ML_right(i),result_pathlength(i), AP_velocity(i),ML_velocity(i),'VariableNames',headers,'RowNames',header_walk(i));
end
walk = vertcat(walk{:});
walk=input('input: ','s');
writetable(walk,'RIGHTFOOT.txt','Delimiter',' ');
i am hoping to write a script that askes for the user to save the table as a text file with their own name of choice. i ideally would like a dialog box to appear prompting the user to save the table. could someone please guide me in this? :) thanks

Answers (0)

Categories

Find more on Tables 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!