matlab 删除指定元素等 null

来源:互联网 发布:刺身盖饭 知乎 编辑:程序博客网 时间:2024/06/01 09:12

 

 

 >>G

 

G =

 

Fourscore and seven years ago our fathers brought forth on this

continent a new nation, conceived in liberty and dedicated to the

proposition that all men are created equal.

 

 

>> G(G==' ')=[];G(G==',')=[];G(G=='.')=[]     删除空格,标点

 

G =

 

Fourscoreandsevenyearsagoourfathersbroughtforthonthis

continentanewnation,conceivedinlibertyanddedicatedtothe

propositionthatallmenarecreatedequal

 

 

 

原创粉丝点击