About looping and array

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},')']

This question is closed.

Products

Asked:

on 24 Sep 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!