【发布时间】:2014-04-09 22:24:22
【问题描述】:
所以我有一个这样定义的 .h 文件
#ifndef CONSTANTS_H
#define CONSTANTS_H
#include "math.h"
//CALA = CA/LA, CRLR = CR/LR
#define CALA 0.2
#define CRLR 25.0
//self-propulsion and friction
#define ALPHA .15
#define BETA .05
//Evolution simulation size
#define STUDYSIZE 100
#define STUDYLENGTH 1
.....
#define INITIAL_CONDITION true
#endif
有没有办法把我这里定义的常量导入matlab变量。
【问题讨论】: