当前位置:网站首页>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 .
边栏推荐
- Mysql, how many columns can be used to create an index?
- Brief introduction to ThreadLocal class
- See how Google uses pre training weights in target detection tasks | CVPR 2022
- QT 怎么删除布局里的所有控件?
- Tell you step by step what you need to do to apply for PMP? What should I do?
- Es6: template string
- pyspark更改列顺序存入iceberg数据库
- Es6: arrow function usage
- sql server时间字段排序
- Use ffmpeg to generate single image + single audio streaming video in batches
猜你喜欢

Prescan quick start to proficient in lecture 17, speed curve editor

Parse tree structure JS

Spiral matrix

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

二维数组及操作

Swm32 series tutorial 5-adc application

Common solutions for distributed ID - take one

Mysql-怎么添加用户和设置权限?

UE4 engine customizes screenpass and MRT output

Unity切换到另一个场景的时候,发现该场景变暗了
随机推荐
Talk about row storage and column storage of database
Melt cloud x chat, create a "stress free social" habitat with sound
业务数字化飞速奔跑,管理数字化亟待出发
记录一次mycat连接Communications link failure问题解决
聊一聊数据库的行存与列存
How do we run batch mode in MySQL?
2021-07-02
Get the clicked line number in qtablewidget
Can‘t connect to server on ‘IP‘ (60)
Exception handling in SQL Server
Use ffmpeg to generate single image + single audio streaming video in batches
sparksql 与flinksql 建表 与 连表记录
Qt多线程中槽函数在哪个线程里执行分析
Enum class
How to use QT help documents
Redis of non relational database [jedis client +jedis connection cluster]
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
五张图看懂EMI电磁干扰的传播过程-方波陡峭程度对高频成分的影响,时序到频域频谱图形,波形形状对EMI辐射的影响。
Prescan quick start to master the road elements of lecture 15
Usage of constructors