Info

This question is closed. Reopen it to edit or answer.

About looping and array

1 view (last 30 days)
Yoga Arviansyah
Yoga Arviansyah on 24 Sep 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
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...??

Answers (1)

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

Products

Community Treasure Hunt

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

Start Hunting!