MATLAB Answers

I keep getting a matrix dimensions must agree error message in line 28, does anyone know what is wrong?

1 view (last 30 days)
Josh Willoughby
Josh Willoughby on 1 Dec 2019
Answered: Image Analyst on 1 Dec 2019

  0 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 1 Dec 2019
Use strcmpi() or strcmp() to compare strings, not ==.
if (wordInputFile{i, 2} == yearRange(j)) && strcmpi(wordInputFile{i, 1}, word)
strcmpi(wordInputFile{i, 1}, word} will return either true or false depending on whether those words match or not.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products