What does X = [X Y] mean ?
70 ビュー (過去 30 日間)
古いコメントを表示
Bachtiar Muhammad Lubis
2018 年 10 月 30 日
回答済み: Breilyn Bautista
2019 年 11 月 17 日
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 件のコメント
採用された回答
Image Analyst
2018 年 10 月 30 日
I don't know exactly what read_letter does, but if it returns a character, then Word is a character array - basically a vector (1-D array) of letters.
If you need more help, attach
- your .mat file,
- your image file, and
- your code for the read_letter() function
2 件のコメント
Image Analyst
2018 年 11 月 5 日
OK. Not sure why you didn't get an email. It automatically does that. You might want to check your junk mail folder or check the email you have registered here to make sure it's right.
Thanks for doing #3 (attaching code). I'll get notified when you've done #1 and #2.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!