MATLAB 报错 The S-Function sourse file cannot be found解决方法
S-Function函数报错
今天在调用S-Function函数时出现了报错:The S-Function sourse file cannot be found。It could be either that the file does not exist,or it’s not on your MATLAB path.Do you want to manually browseit,simply open the editor or cancel?
报错页面如下:
在网上没有搜索到直接的解决办法,最后参考了这篇博文(MATLAB2015a中Simulink使用S函数的方法全过程)后发现是创建的时候出了问题,现将我的解决方法列出,希望对大家有所帮助。
解决办法
1.首先我在simulink调用S-Function函数之前,先在文件夹里面创建好.m函数文件,并且改好我需要的文件名。
2.然后在命令行里输入edit sfuntmpl,将sfuntmpl.m里的模板内容全部复制到我创建好的.m文件中。
3.在simulink中调用S-Function函数,双击打开设置,将S-function name这一项改为我刚刚创建的.m文件名,这样就把simulink中的S-function函数和.m文件关联起来了。问题解决。
以上方法仅供参考,如有不足,欢迎在评论区交流指正。
MATLAB 报错 The S-Function sourse file cannot be found解决方法相关推荐
- Hive 启动报错java.net.URISyntaxException: Relative path in absolute URI 解决方法
linux安装hive 遇到问题:Hive 启动报错java.net.URISyntaxException: Relative path in absolute URI 解决方法 方法记录 提示:这里 ...
- svn update 报错,必须先cleanup,然后cleanup失败解决方法
svn update 报错,必须先cleanup,然后cleanup失败解决方法 参考文章: (1)svn update 报错,必须先cleanup,然后cleanup失败解决方法 (2)https: ...
- 安装linux 系统报错:No DEFAULT or UI configuration directive found 解决方法
安装linux 系统报错:No DEFAULT or UI configuration directive found 解决方法 参考文章: (1)安装linux 系统报错:No DEFAULT or ...
- 使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法
使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法 参考文章: (1)使用ANT编译项目报错 com.sun.image.codec.jp ...
- 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘ 解决方法
[pycharm]pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 参考文章: (1) ...
- mycat重启报错Failed to connect to the Wrapper at port解决方法
mycat重启报错Failed to connect to the Wrapper at port解决方法 参考文章: (1)mycat重启报错Failed to connect to the Wra ...
- maven文件报错(pom.xml或者jar包缺失)解决方法
maven文件报错(pom.xml或者jar包缺失)解决方法 参考文章: (1)maven文件报错(pom.xml或者jar包缺失)解决方法 (2)https://www.cnblogs.com/wa ...
- 报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法
报错:Parameter 'XXX' implicitly has an 'any' type.解决方法 tsconfig.json添加"noImplicitAny": false ...
- http请求报错Illegal character in query at index 303的解决方法
http请求报错"Illegal character in query at index 303"的解决方法 执行jmeter的http请求时,请求失败,在Sampler resu ...
最新文章
- 【每日一算法】相交链表
- PAT甲级1062 Talent and Virtue:[C++题解]结构体、哈希表
- Oracle-锁解读
- 考研预报名一直显示服务器错误,2021考研预报名 | 往年预报名出错的同学,问题出在这里!...
- 怎么通过id渲染页面_「快页面」动态配置化页面渲染器原理介绍
- TNS-03505 oracle用户可以tnsping通,普通用户tnsping报错
- html 通用ui css图标,ui-icon.html
- JavaScript数组系列函数之push与pop函数用法
- Linux文件查找及压缩工具
- html5视频播放器 二 (功能实现及播放优化)
- matlab伽马分布,伽马分布(Γ分布的分布函数)
- 多元函数偏导数连续、存在与可微的关系
- 苹果计算机怎么显示汉字,苹果的safari浏览器怎样设定成中文显示
- 重磅:国家基金委八大学部公布“优先发展领域及主要研究方向”
- 南阳oj入门题-奋斗的小蜗牛
- 面试题:两个对象值相同(x.equals(y) == true),但却可有不同的hash code,这句话对不对?
- 山东平度纵火案告破:村主任与地产商联手施暴
- Hexo+NexT 如何取消下划线
- 2019,向着迷茫的远方前行
- kingcms php 下载,KingCMS企业版(PHP) v6.1.1641(Sp2)