回 帖 发 新 帖 刷新版面

主题:关于结构体

在c中的结构体,在matlab中如何实现,比如c中
[b]typedef struct tagBranch
{
int number;   
char type;   
int  nfrom;   
int  nto;     
float value;  
int   ncfrom; 
int   ncto;   
}BRANCH;[/b]
在matlab中怎么实现,谢谢~~
[em1]

回复列表 (共3个回复)

沙发

应该可以用构架数组来实现

板凳

能具体点说吗,我是新手,刚学没有多久,谢谢

3 楼


给你一个示例: 
A=[-1 0 0;0 -1 0;0 0 -1;1 0 0;0 1 0; 0 0 1] 
B=[180 300 30 210 350 40]' 

C.A=A 
C.B=B 

C

我来回复

您尚未登录,请登录后再回复。点此登录或注册