- your .mat file,
- your image file, and
- your code for the read_letter() function
What does X = [X Y] mean ?
108 visualizzazioni (ultimi 30 giorni)
Bachtiar Muhammad Lubis il 30 Ott 2018
I have the code approximately like this :
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];
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 !';
Image Analyst il 30 Ott 2018
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