Info

此问题已关闭。 请重新打开它进行编辑或回答。

Work with data just in selected paths

1 次查看(过去 30 天)
Nik Rocky
Nik Rocky 2020-6-24
关闭: MATLAB Answer Bot 2021-8-20
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!

回答(1 个)

Aditya Verma
Aditya Verma 2020-6-24
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.
Thanks
  6 个评论
Aditya Verma
Aditya Verma 2020-6-24
I still don't understand what you want to acheive. Do you want to suppress the error?
Nik Rocky
Nik Rocky 2020-6-24
I want to compare mat.file from subfolder 001 with mat.file from subfolder 003.
All subfolders are in one same folder.
I would prefer to write in a code:
load data x from folder 001
load data y from folder 003
compare x and y

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by