What does X = [X Y] mean ?
Afficher commentaires plus anciens
I have the code approximately like this :
Word =[];
for m = 1 : N
Letter = read_letter(img, num_letters) %read_letter is the file function to correlate my .mat with character image(img) and then determining that img as a letter eg.('a','b' or 'c' ect.)
Word = [Word Letter];
end
So the question is. Are the values inside of Word variable are letters ? Additional:Does Word variable works like Unary Operation ?
Because i can't access this array to take its values with simple for loop like :
chars = ''; % i dont know whether this is necessary or nah
for m = 1 : length(Word)
if Word(m) == 'a' || Word(m) == 'b'
chars = 'character is a or b !';
end
end
disp(chars);
1 commentaire
"What does X = [X Y] mean"
It is a concatenation operator:
"Does Word variable works like Unary Operation ?"
How can a variable "work like" an operator?
Réponse acceptée
Plus de réponses (1)
Breilyn Bautista
le 17 Nov 2019
0 votes
como se realisa esta operacion en matlad A-[X'Y']
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!