hello, i have 5 input as following , how to use print command as print(' a= ' a , ' b= ' b, ' c= ' c, ' d= ' d,' e= ' e) in order to display output a=3 b =4 c=6 d=7 e=9
Mostra commenti meno recenti
a=3; b=4; c=6; d=7; e=9;
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 1 Set 2016
Modificato: Azzi Abdelmalek
il 1 Set 2016
str={'a','b','c','d'}
v={3 4 5 6}
w=[str; v]
sprintf('%s=%d;',w{:})
1 Commento
mohammed hamdy
il 1 Set 2016
Categorie
Scopri di più su String Parsing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!