当前位置:网站首页>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 .
边栏推荐
- QT 怎么删除布局里的所有控件?
- Get the clicked line number in qtablewidget
- Understand the propagation process of EMI electromagnetic interference through five diagrams - the influence of square wave steepness on high-frequency components, the spectrum graph from time sequenc
- How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
- Detailed explanation of random number generated by random class
- Qt多线程中槽函数在哪个线程里执行分析
- Change the dataDir path after mysql8.0.16 installation
- One key switch circuit
- Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
- 【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
猜你喜欢

聊一聊数据库的行存与列存

Puzzle (004.3) pattern puzzle

Protobuf basic grammar summary

See how Google uses pre training weights in target detection tasks | CVPR 2022

五张图看懂EMI电磁干扰的传播过程-方波陡峭程度对高频成分的影响,时序到频域频谱图形,波形形状对EMI辐射的影响。

CarSim simulation quick start (10) - Modeling of braking system
![Chapter 01 introduction of [notes of Huashu]](/img/11/cc405a730822305f02f05678f6a9d1.png)
Chapter 01 introduction of [notes of Huashu]

Use ffmpeg to generate single image + single audio streaming video in batches

c语言中函数的介绍(血书20000字!!!!)
![In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]](/img/90/a3f56ef8f08a8735febba16af227f9.png)
In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]
随机推荐
[environment configuration] ppyoole trains its own data set (for its own use)
Prescan quick start to master the track editing path of Lecture 16
业务数字化飞速奔跑,管理数字化亟待出发
Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
Qt使用信号量控制线程(QSemaphore)
数字签名和CA证书
Usage of qgroupbox
EMC EMI磁珠的特性
What happens when you unplug the power? Gaussdb (for redis) dual life keeps you prepared
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)
Es6: template string
Mysql, how many columns can be used to create an index?
Spiral matrix
Is the salary of test / development programmers unbalanced? Busy life, all kinds of job hopping
leetcode/单词长度的最大乘积
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
Window 1 - > main window of the application (27)
XSS知识点和20字符短域名绕过
Freezing and thawing of pytoch
How do we run batch mode in MySQL?