MATLAB: How to find all uppercase letters in a string

countlogical?stringsuppercase

I have the following string:
str = 'I am an International student at the University of Lethbridge'
and I need to first find and count how many letters are uppercase, and second change them all to lowercase.
What Matlab help has pointed me in the direction of is:
a = count(str, upper(str))
Which gave me one single zero. So I also tried:
TF = isstrprop(str,upper)
Which is giving me the error "Not enough input arguments"
What am I doing wrong and how can I fix this?
Thanks!

Best Answer

str = 'I am an International student at the University of Lethbridge' ;
idx = isstrprop(str,'upper') ;
str(idx) = lower(str(idx))