Question about extracting rows from a table based on string

2 views (last 30 days)
Hello everyone
I wanted to store all winter ("Win") values of the rrr24 column in my data set in a new array
So I tried to do it like:
C_Winter = temp(strcmp((temp.seasons,'Win'),rrr24));
But this error appears,
C_Winter = temp(strcmp((temp.seasons,'Win'),rrr24));
Error: Invalid expression. When calling a function or indexing a variable,
use parentheses. Otherwise, check for mismatched delimiters.
I tried some other ways but all of them leads to error. Do you know what should I do?
Thank you.

Sign in to comment.

Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by