当前位置:网站首页>How to call self written functions in MATLAB
How to call self written functions in MATLAB
2022-06-26 14:13:00 【Orange tea must be ^ -^】
1. Create a function
Generally, you should pay attention to the structure of the function when you write the function yourself , These include : Function name , The input values , Output value , The following is an example ,function Create a function ,‘JEntropy’ For function name ,( To be saved m The file name should match the function name ), Otherwise, the creation function does not hold , The input value is in the brackets to the right of the equal sign , namely :xy; The value to the left of the equal sign is the output value , Is the evaluated value e
2. Call function
To call a function, you need to add the created function to the path first , And then in matlab Command bar .
Invocation time , I / O to be associated with the created The variables in the function are consistent , Generally, it only needs function Copy the function after , As shown in the figure below :
边栏推荐
- Hands on data analysis unit 3 model building and evaluation
- 团队管理的最关键因素
- Detailed sorting of HW blue team traceability process
- 爱可可AI前沿推介(6.26)
- 服务器创建虚拟环境跑代码
- DOS command
- [wc2006] director of water management
- Range of types
- Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
- Create your own cross domain proxy server
猜你喜欢
Basic type of typescript
Wechat applet -picker component is repackaged and the disabled attribute is added -- below
Gurivat sprint Harbour Exchange listed: created “multiple first”, received 900 million yuan Investment from IDG capital
Pytorch based generation countermeasure Network Practice (7) -- using pytorch to build SGAN (semi supervised GaN) to generate handwritten digits and classify them
array
9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》
Range of types
Select tag - uses the default text as a placeholder prompt but is not considered a valid value
常用控件及自定义控件
Build your own PE manually from winpe of ADK
随机推荐
Related knowledge of libsvm support vector machine
Codeforces Global Round 21A~D
近期比较重要消息
Design of PHP asymmetric encryption algorithm (RSA) encryption mechanism
[proteus simulation] Arduino uno key start / stop + PWM speed control DC motor speed
Luogu p4145 seven minutes of God created questions 2 / Huashen travels around the world
Correlation analysis related knowledge
Installation and uninstallation of MySQL software for windows
[ahoi2005] route planning
2021-10-18 character array
D check type is pointer
Assert and constd13
C language | Consortium
[hnoi2010] flying sheep
Wechat applet SetData dynamic variable value sorting
DOS command
Jenkins build prompt error: eacces: permission denied
First k large XOR value problem
[sdoi2013] forest
服务器创建虚拟环境跑代码