Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Upload data to updated current directory

조회 수: 5 (최근 30일)
Ethar Alkamil
Ethar Alkamil 2019년 2월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Bob Thompson
Bob Thompson 2019년 2월 28일
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?
Ethar Alkamil
Ethar Alkamil 2019년 3월 1일
I need to save excel file to the new created file using "mkdir", and my problem is how to update the current directory by adding the new created folder name to it to save the data, I hope is it clear now

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by