有没有一个matlab函数直接删去矩阵中的字符whos weight_annotation_mat_newName Size Bytes Classweight_annotation_mat_new 495x708 700920 char arrayweight_annotation_mat_new(1,:)ans =0,1,0,0.75,0,0.5,1,0,0,0.25,0,0,1,0,0,0..每一行都有
来源:学生作业帮助网 编辑:六六作业网 时间:2024/09/05 15:44:22
有没有一个matlab函数直接删去矩阵中的字符whos weight_annotation_mat_newName Size Bytes Classweight_annotation_mat_new 495x708 700920 char arrayweight_annotation_mat_new(1,:)ans =0,1,0,0.75,0,0.5,1,0,0,0.25,0,0,1,0,0,0..每一行都有
有没有一个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个,包括逗号
我想把全部的逗号删掉(矩阵大小改变)
有没有这个函数
有没有一个matlab函数直接删去矩阵中的字符whos weight_annotation_mat_newName Size Bytes Classweight_annotation_mat_new 495x708 700920 char arrayweight_annotation_mat_new(1,:)ans =0,1,0,0.75,0,0.5,1,0,0,0.25,0,0,1,0,0,0..每一行都有
weight_annotation_mat_new(find(weight_annotation_mat_new==','))=[]