matlab : R2018a 64bit
OS : Windows 10 x64
typesetting : Markdown
blog : my.oschina.net/zhichengjiu
gitee : gitee.com/zhichengjiu
code
a='abcdefg'
b=size(a)
c=a(b(2):-1:1)
a='abcdefg'
a(end:-1:1)
result
a =
'abcdefg'
b =
1 7
c =
'gfedcba'
a =
'abcdefg'
ans =
'gfedcba&#