作业帮 > 综合 > 作业

有没有一个matlab函数直接删去矩阵中的字符

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 10:58:28
有没有一个matlab函数直接删去矩阵中的字符
whos weight_annotation_mat_new
Name Size Bytes Class
weight_annotation_mat_new 495x708 700920 char array
weight_annotation_mat_new(1,:)
ans =
0,1,0,0.75,0,0.5,1,0,0,0.25,0,0,1,0,0,0..每一行都有708个,包括逗号
我想把全部的逗号删掉(矩阵大小改变)
有没有这个函数
weight_annotation_mat_new(find(weight_annotation_mat_new==','))=[]