index=PNcode==0; PNcode(index)=-1;matlab中这两句语句,

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 12:30:56

index=PNcode==0; PNcode(index)=-1;matlab中这两句语句,
index=PNcode==0; PNcode(index)=-1;matlab中这两句语句,

index=PNcode==0; PNcode(index)=-1;matlab中这两句语句,
第一句判断PNcode每一个元素是否为0
第二句,把PNcode数组中为0的元素,赋值为-1