Matlab
oura
世界上没有一种力量可以取代毅力!
展开
-
Simulink : Sample time properities
在Simulink仿真中指定Solver的采样时间原创 2023-02-10 15:55:56 · 282 阅读 · 0 评论 -
Simulink: 模块采样时间分类
在simulink中,很多模块需要填充采样时间,一般情况下sample time =-1。下面就具体介绍一下sample time 的设置及分类。1. sample time = -1,表示继承输入信号的采样时间,若没有输入信号,继承父层模型采样时间;如果模块无输入信号且本身处于顶层模型中,则继承系统解算器的步长。2. sample time = 0,表示连续采样时间。3. sample time = 非零正数,例如2,3等,表示离散采样时间,例如我们输入的信号采样周期是0.01秒,那么此处的.原创 2020-07-09 11:22:32 · 12184 阅读 · 0 评论 -
Simulink: Menu bar missing in Simulink
solution as following:Follow these steps:1. Refresh the file system caches using the following commands:>> restoredefaultpath>> rehash toolboxcache2. Run the following command to rebuild Simulink and Library menus and toolbars:>&原创 2020-07-08 16:26:04 · 373 阅读 · 0 评论 -
HDL Coder: if-else block to generate HDL coder
1.https://www.mathworks.com/matlabcentral/answers/390508-if-else-equivalent-block-for-hdl-code-generation2.https://www.mathworks.com/help/hdlcoder/examples/getting-started-with-ram-and-rom-in-simulink.html原创 2023-02-10 15:40:40 · 132 阅读 · 0 评论 -
Simulink error : Port 2 of ‘final/Subsystem4/Subsystem2/Switch Case‘ can only be connected to an ...
error:Port 2 of 'final/Subsystem4/Subsystem2/Switch Case' can only be connected to an action subsystem and may not be connected to more than one action subsystem错误原因:The output of the "Switch Case" block is a trigger. It can only trigger one subsystem.原创 2020-07-01 13:55:30 · 1863 阅读 · 0 评论 -
如何设置“Variable-Sized Input and Output from MATLAB Function block in Simulink ”
1. 首先打开Simulink 中的"Model Explorer"2.找到需要设置Variable-size 输入和输出的Matlab Function ,例如本例选中的是Matlab Function3,然后选中输出变量"y",在右侧的"Data y" 设置面板中,勾选"Variable size",同时在Size: 选项中填写出"y"这个变量的最大size,例如本例填写的是12,意味着y变量最大是一个12*1的列向量,注意12*1和1*12不是同一个类型。3. 如果输入变量也是Va原创 2020-06-08 17:41:13 · 1230 阅读 · 0 评论 -
Simulink Major step and minor step 的区别
major step and minor stepdistinctionhttps://www.mathworks.com/matlabcentral/answers/92428-how-does-the-minor-time-step-work-in-simulink-what-does-minor-time-step-mean转载 2020-05-11 15:15:58 · 646 阅读 · 0 评论 -
Matlab Simulink 操作命令大全
常用命令:仿真命令:sim ---仿真运行一个simulink模块sldebug ---调试一个simulink模块simset ---设置仿真参数simget ---获取仿真参数线性化和整理命令:linmod ---从连续时间系统中获取线性模型linmod2 ---也是获取线性模型,采用高级方法dinmod ---从离散时间系统中获取线性模型trim ---为一个仿真系统寻找...翻译 2020-03-25 14:11:16 · 2824 阅读 · 0 评论 -
Matlab系列之:Save and Delete COM Objects
官网解释如下:https://ww2.mathworks.cn/help/matlab/matlab_external/saving-your-work.html#f62902转载 2019-12-20 10:48:08 · 90 阅读 · 0 评论 -
Matlab系列之release函数
官网解释如下:https://ww2.mathworks.cn/help/matlab/ref/release.html转载 2019-12-20 10:44:23 · 2172 阅读 · 0 评论 -
如何用Matlab打开VC2017 C语言保存的dat和txt文件
首先,用C语言保存一个浮点型数组数据到指定文件中去,C语言程序如下:// read_write_files.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include<stdlib.h>int main(){ int i;...原创 2019-04-17 18:02:01 · 527 阅读 · 0 评论