当前位置:网站首页>Matlab file path
Matlab file path
2022-07-28 08:30:00 【Kaizhi~】
generally speaking , The function file that can be called by the script file must be under the same file path , So in general MATLAB Projects are a folder , It stores all the .m file . But in fact , The function files that script files can call also include private Private functions in folders . As shown in the figure below ,Base.m and nua.m The file is a script file ,x.m、y.m、z.m For function file .Base.m File is callable by default y.m and x.m file , Cannot call new In folder z.m file .

If in Base.m An attempt was made to call z.m file , The following prompt appears in the command line window :

The former means to switch to z.m The folder where the file is located to continue running , Of course, even if you choose this option, it will not work normally in Base.m Call in file z.m file , Because at this time Base.m The file is not in the current folder , So it can't run . Only the latter , take z.m Add the file to the path ( similar keil Add the file path ), In order to operate normally . The current folder window is shown in the following figure , You can see ,z.m The folder is “ Lighten up ”. here ,Base.m、y.m、z.m、nua.m Can call each other , Of course ,z.m、nua.m Cannot call through this method private In folder x.m file .

The method of adding a path is to add it after running and reporting an error , You can also right-click in the current folder window and select “ Add to path ”, The effect is the same .
View the method of added path , You can click Set path in the Home tab .

The following window pops up , On the right is the added path ,MATLAB If the corresponding function cannot be found at runtime , Will search in turn .
边栏推荐
- The even number of an integer queue is placed in the front, the odd number is placed in the back, and the relative position of the even and odd numbers remains unchanged
- Can the variable modified by final be modified
- Talk about synchronous, asynchronous, blocking and non blocking
- CarSim simulation quick start (XI) - Driver Model (1)
- New generation cloud native message queue (II)
- What if the computer folder cannot be renamed?
- [chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial
- Mechanical revolution Jiaolong P wired network card driver can't play
- [reprint] man Rsync translation (Chinese Manual of Rsync command)
- OpenTSDB-时序数据库
猜你喜欢

How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)

Melt cloud x chat, create a "stress free social" habitat with sound

sql server时间字段排序

Talk about row storage and column storage of database

Spiral matrix

CarSim simulation quick start (XII) - Driver Model (2)

These mobile security browsers are more than a little easy to use

Deep browser rendering principles
![Redis of non relational database [detailed setup of redis cluster]](/img/0b/bd05fb91d17f6e0dc9f657a4047ccb.png)
Redis of non relational database [detailed setup of redis cluster]

@The role of documented
随机推荐
2022/7/27 examination summary
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
金属质感登录框样式
数字签名和CA证书
Use of namespaces
Change the dataDir path after mysql8.0.16 installation
sql server时间字段排序
Technology sharing | common proxy tools for interface testing
解决EMC、EMI传导干扰的八大方法
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
Swm32 series tutorial 5-adc application
[Qt5] QT small software release
QT 怎么删除布局里的所有控件?
leetcode/排序数组中两个数字之和
Mechanical revolution Jiaolong P wired network card driver can't play
业务数字化飞速奔跑,管理数字化亟待出发
MySQL query error [err] 1046 - no database selected
Basic dictionary of deep learning --- activation function, batch size, normalization
C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
What happens when you unplug the power? Gaussdb (for redis) dual life keeps you prepared