Skip to content

Commit 88c7de4

Browse files
committed
make changes recommended by code compatibility check
1 parent 38a0ea1 commit 88c7de4

9 files changed

+18
-18
lines changed

PGraph.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,10 @@ function display(g)
772772
% state of the graph including the number of vertices, edges and components.
773773

774774
s = '';
775-
s = strvcat(s, sprintf(' %d dimensions', g.ndims));
776-
s = strvcat(s, sprintf(' %d vertices', g.n));
777-
s = strvcat(s, sprintf(' %d edges', numcols(g.edgelist)));
778-
s = strvcat(s, sprintf(' %d components', g.nc));
775+
s = char(s, sprintf(' %d dimensions', g.ndims));
776+
s = char(s, sprintf(' %d vertices', g.n));
777+
s = char(s, sprintf(' %d edges', numcols(g.edgelist)));
778+
s = char(s, sprintf(' %d components', g.nc));
779779
end
780780

781781
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Quaternion.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ function display(q)
689689
if length(q) > 1
690690
s = '';
691691
for qq = q;
692-
s = strvcat(s, char(qq));
692+
s = char(s, char(qq));
693693
end
694694
return
695695
end

RTBPose.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ function disp(obj)
778778
out = '';
779779

780780
for T=obj
781-
out = strvcat(out, printfn(double(T), varargin{:}));
781+
out = char(out, printfn(double(T), varargin{:}));
782782
end
783783
end
784784
end

SpatialInertia.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ function display(obj)
124124
end
125125
m = num2str(obj.I);
126126
for line = m'
127-
s = strvcat(s, [' ' line']);
127+
s = char(s, [' ' line']);
128128
end
129129
else
130130
s = char( obj(1) );
131131

132132
for i = 2:numel(obj)
133-
s = strvcat(s, ' ');
134-
s = strvcat(s, char(obj(i), 0) );
133+
s = char(s, ' ');
134+
s = char(s, char(obj(i), 0) );
135135
end
136136
end
137137
end

SpatialVec6.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function display(obj)
131131
s = char( obj(1) );
132132
indent = repmat(' ', 1, length(class(obj)));
133133
for i = 2:numel(obj)
134-
s = strvcat(s, sprintf('%s [ %g %g %g | %g %g %g ]', indent, obj(i).vw));
134+
s = char(s, sprintf('%s [ %g %g %g | %g %g %g ]', indent, obj(i).vw));
135135
end
136136
end
137137
end

about.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
function about(varargin)
4242
for i=1:nargin
4343
var = varargin{i};
44-
if isstr(var)
44+
if ischar(var)
4545
% invoked without parentheses
4646
w = evalin('caller', sprintf('whos(''%s'')', var));
4747
varname = var;

arrow3.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,11 @@ function LocalSetSurface(xys,xs,ys,dx,dy,xr,yr,x,y,z,a,c,H,n,m)
758758
if nargin<1, c='k'; ls='-'; lw=0.5;
759759
else
760760
% identify linestyle
761-
if findstr(s,'--'), ls='--'; s=strrep(s,'--','');
762-
elseif findstr(s,'-.'), ls='-.'; s=strrep(s,'-.','');
763-
elseif findstr(s,'-'), ls='-'; s=strrep(s,'-','');
764-
elseif findstr(s,':'), ls=':'; s=strrep(s,':','');
765-
elseif findstr(s,'*'), ls='*'; s=strrep(s,'*','');
761+
if strfind(s,'--'), ls='--'; s=strrep(s,'--','');
762+
elseif strfind(s,'-.'), ls='-.'; s=strrep(s,'-.','');
763+
elseif strfind(s,'-'), ls='-'; s=strrep(s,'-','');
764+
elseif strfind(s,':'), ls=':'; s=strrep(s,':','');
765+
elseif strfind(s,'*'), ls='*'; s=strrep(s,'*','');
766766
else ls='-';
767767
end
768768

stlRead.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
isSolid = strcmp(header(1:min(5,length(header))),'solid'); % take first 5 char
115115
fseek(fid,-80,1); % go to the end of the file minus 80 characters
116116
tail = char(fread(fid,80,'uchar')');
117-
isEndSolid = findstr(tail,'endsolid');
117+
isEndSolid = strfind(tail,'endsolid');
118118

119119
% Double check by reading the last 80 characters of the file.
120120
% For an ASCII file, the data should end (give or take a few

tb_optparse.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
if nargout >= 2
304304
arglist = [arglist argv(argc)];
305305
else
306-
if isstr(argv{argc})
306+
if ischar(argv{argc})
307307
error(['unknown options: ' argv{argc}]);
308308
end
309309
end

0 commit comments

Comments
 (0)