Work with data just in selected paths
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hello together,
I have special folder with data (ex.):
FilePath1 = '/home/user/workspace/QT/Software_2.0_QT/IO/Motor_Set_1/AKG_C1000S/Distance_0.5m/Scenario_M1/001_m1_60_const_20200611_200515'
FilePath2 = '/home/user/workspace/QT/Software_2.0_QT/IO/Motor_Set_1/AKG_C1000S/Distance_0.5m/Scenario_M1/002_m2_60_const_20200811_200411'
inside are different .mat files.
I want calculate data with just this two paths.
addpath(Filepath1);
and
addpath(Filepath2);
are not working. And if my current MATLAB folder
'/home/user/workspace/QT/Software_2.0_QT/IO/Motor_Set_1/AKG_C1000S/Distance_0.5m/Scenario_M1'
MATLAB starting to work with all foler inside:
001, 002,003,...030.
And i want just 001 and 002
How can I choose and lock my working folder?
Thank you!
댓글 수: 0
답변 (1개)
Aditya Verma
2020년 6월 24일
0 개 추천
Hi!
Could you check in the lists of all search paths if you have accidently added those subfolders? You can check it using the 'Set path' dialogue box. Find it in the Home tab, in the Environment section.
Using the same dialogue box you can add or remove the folders you want.
Read more about it here: https://www.mathworks.com/help/matlab/matlab_env/what-is-the-matlab-search-path.html
Thanks
댓글 수: 6
Nik Rocky
2020년 6월 24일
Aditya Verma
2020년 6월 24일
What is the exact command you are using to load the files?
Nik Rocky
2020년 6월 24일
Aditya Verma
2020년 6월 24일
Okay, so the way it works is that it checks all the paths for the file specified in load command. If the file is not found, then only it gives an error, which is expected behaviour. Here, in this case it also gives a suggestion along with that error.
Aditya Verma
2020년 6월 24일
I still don't understand what you want to acheive. Do you want to suppress the error?
Nik Rocky
2020년 6월 24일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!