Info
This question is closed. Reopen it to edit or answer.
Upload data to updated current directory
1 view (last 30 days)
Show older comments
I have the following current directory to save my project data:
% Project path, data parent settings:
cd 'C:\Users\Alex\Documents\MATLAB\Projects'
A = ‘Project name’
B=’Site name’
C=’Data’
mkdir( fullfile(A,B,C))
% I need to upload a data file to ‘C’ the from one file from PC.
[file,path] = uigetfile('*.xlsx');
if isequal(file,0)
disp('User selected Cancel');
else
disp(['User selected ', fullfile(path,file)]);
end
Q: How can I upload these data in ‘C’ file?? Under the following cd:
cd 'C:\Users\Alex\Documents\MATLAB\Projects\Project name\ Site name\Data'
2 Comments
Bob Thompson
on 28 Feb 2019
What do you mean by 'upload?' Do you want to save a file, or are you trying to load some data? If you are trying to save something, do you want to save the variables directly, or the data contained within the variables?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!