How to change current folder in Command Window

Опубликовано: 04 Октябрь 2024
на канале: Jeff Anderson
642
9

We explore the Current Folder window. We also discover how to change that current folder using point-and-click features and MATLAB commands. Finally, we explore MATLAB’s search path (the list of folders that prints when running command matlabpath).

00:00 -Introduction
00:27 -MATLAB: the Kernal, the GUI, and the Search Path (library)
00:55 -Analogy between MATLAB and library of congress
01:27 -Thought experiment: question to the librarian
01:41 -Thought experiment: librarian processes my command
02:19 -Syntax is to MATLAB as Question is to Librarian
02:46 -Librarian is to library what Kernel is to MATLAB
02:54 -Books are to library what functions are to MATLAB
03:20 -Librarian’s mental map is like MATLAB’s search path
03:57 -Analogy between a librarian and MATLAB
04:49 -What is the search path in MATLAB
05:11 -Type the command matlabpath
06:00 -The top of MATLAB’s search path: userpath command
06:23 -Example 1: Run code that is not in the search path
07:36 -How Current Folder is fits in the library analogy
08:37 -What the MATLAB’s Current Folder does
09:11 -Type the userpath command
09:36 -Example 2: Run code that is not in the Current Folder
10:58 -The Current Folder empowers you to run new code in MATLAB
11:20 -Change Current Folder by clicking “Browse for folder” icon
11:43 -Change Current Folder by clicking “One level up” icon
12:09 -Access MATLAB drive button
12:31 -Navigate by clicking on the Current Folder toolbar
13:11 -Navigating at the Command Window prompt
13:22 -Example 3: Type the ‘pwd’ command (Print Working Directory)
13:53 -Example 4: Type the ‘cd’ command (Change Directory)
14:21 -Example 5: Navigate backwards using the cd ../ command
14:44 -Example 6: Type the ls command (LiSt contents of Current Folder)
14:53 -Example 7: Type cd command with path of desired directory
16:23 -Example 8: Duplicate script file using copyfile command
17:21 -Example 9: Open script file using open command
17:37 -Example 10: Change name of file using movefile command
18:42 -Example 11: Make a new directory using mkdir command
19:25 -Example 12: Move a file into a directory using movefile command
21:13 -Example 13: Delete a file using delete command
21:52 -Example 14: Remove a directory using rmdir command
22:15 -Example 15: Change name of directory using movefile command
22:58 -Review of all commands in this video
23:45 -Community Challenge 1: Why run the commands from this video?
25:00 -Community Challenge 2: Generate an analogy for search path
26:04 -Run matlabpath command and explore
26:28 -Show package contents to explore toolbox library
27:03 -Open the elfun folder to see elementary function files
27:18 -Open sind function (contents are hidden)
27:41 -Open realsqrt function (contents are visible)
29:00 -The path is the map MATLAB uses to find code in MATLAB