Info

此问题已关闭。 请重新打开它进行编辑或回答。

About looping and array

2 次查看(过去 30 天)
Yoga Arviansyah
Yoga Arviansyah 2018-9-24
关闭: MATLAB Answer Bot 2021-8-20
For example A=(aa bb cc dd) and B=(aa bb xx yy zz) then i want to display like this (xx yy zz)
*A and B are string
How to display like that by using looping only...??

回答(1 个)

KSSV
KSSV 2018-9-24
A= {'aa' 'bb' 'cc' 'dd'} ;
B={'aa' 'bb' 'xx' 'yy' 'zz'} ;
s = ['(' B{3},',',B{4},',',B{5},')']

此问题已关闭。

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by