
simulink
文章平均质量分 56
喜欢、九点半
这个作者很懒,什么都没留下…
展开
-
在simulink中运行离线训练之后的BP神经网络
本贴内容如题所示,如何将训练好的BP神经网络加入到simulink中去运行,这只是我个人使用的办法,肯定不是效率最好的,大佬们请赐教。以一个简单的sin函数曲线拟合为例,先在simulink中创建一个模型:clock模块用于生成sin函数输入值,sin模块生成sin函数输入值,用to workspace模块将这两组数据导入到工作区,就可以在.m文件中训练神经网络,直接给出代码,具体不再赘述:clear allclose allclc%% 加载数据集 一阶train_x1(:,1)=time原创 2022-05-02 10:59:30 · 7599 阅读 · 24 评论 -
MATLAB 报错 The S-Function sourse file cannot be found解决方法
MATLAB 报错 The S-Function sourse file cannot be foundS-Function函数报错解决办法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原创 2021-07-19 10:24:04 · 6842 阅读 · 2 评论 -
simulink仿真模型报错:This function does not fully set the dimensions of output port 2
simulink仿真模型报错:This function does not fully set the dimensions of output port 2这两天调试模型的时候突然出现了上图的这个报错,然后百度搜索了一下解决办法,那种让修改“edit data”的方法并不管用,后来在优快云上看到了这篇文章:Simulink仿真编译错误:This function does not fully set the dimensions of output port 2,有所启发。最后事实证明确实不是那么原创 2021-05-13 16:26:28 · 8448 阅读 · 3 评论