Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String 需要去掉MATLAB字符串数组中的单引号字符(';)_String_Matlab - Fatal编程技术网

String 需要去掉MATLAB字符串数组中的单引号字符(';)

String 需要去掉MATLAB字符串数组中的单引号字符(';),string,matlab,String,Matlab,我在MATLAB中有一个字符串数组xxxxx,我只想要xxxxx。我如何才能做到这一点?这应该可以做到: s='''''''xxxxx'''''''; newS = strrep(s, '''', ''); newS = xxxxx 你真的需要很多引号来表示一个! 以下是删除所有引号的代码: x(x=='''')=[]

我在MATLAB中有一个字符串数组xxxxx,我只想要xxxxx。我如何才能做到这一点?

这应该可以做到:

s='''''''xxxxx''''''';
newS = strrep(s, '''', '');

newS =

xxxxx

你真的需要很多引号来表示一个! 以下是删除所有引号的代码:

x(x=='''')=[]