
MATLAB
混子20221130
这个作者很懒,什么都没留下…
展开
-
关于MATLAB转C++代码(一)
没时间写,上图快一点,1、写好主运行文件,m_18_10_30.m,并且运行2、单击MATLAB Coder3、进入,选择函数(而不是运行文件)4、Next,选择运行的文件,m_18_10_30.m5、''let me enter...'',是打开上一步骤函数的参数,''Autodefine Input Types''是参考运行时候变量的类型,为函数定义输入类型,也...原创 2018-11-07 10:18:46 · 10654 阅读 · 0 评论 -
关于MATLAB转C++代码(二)
有一些遇到过的问错误提示一、“The left-hand side has been constrained to be non-complex, but the right-hand side is complex. To correct this problem, make the right-hand side real using the function REAL, or chang...原创 2018-11-07 10:18:36 · 2220 阅读 · 0 评论 -
曲线的曲率特征
找了很多计算曲率的例子,都是x轴等间距的例子,我自己写了一个非等间距的曲率计算方法,将一个sin函数偏移并且旋转一定角度,分别测量他们的曲率和与二阶导的和clc;clear;X=(0:0.001:2*pi);gradient=10;x0=sin(X');x0=[X',x0];%旋转点alpha=pi/6;x1=[(x0(:,1)+1)*cos(alpha)-x0(:,2...原创 2018-11-07 10:17:40 · 3763 阅读 · 0 评论