we have a character cell [d d d d] and [d -d d -d]. how can we get [d+d d-d d+d d-d].

Antworten (1)

Walter Roberson
Walter Roberson am 23 Nov. 2016

0 Stimmen

first = {'d', 'd', 'd', 'd'};
second = {'d', '-d', 'd', '-d'};
result = regexprep(strcat(first(:), {'+'}, second(:)), '+-', '-').' ;

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 22 Nov. 2016

Beantwortet:

am 23 Nov. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by