Christiaanvandertol/SCOPE

Error in RTMo (line 273)

winterwac opened this issue · 1 comments

I am running the SCOPE with Matlab R2015b (win10). The first running error is:
'Error using string
string is obsolete and will be discontinued. Use char instead.
Error in SCOPE (line 110)
varnames(k) = string(y{1}{1}); %#ok'

By revising 'varnames(k) = string(y{1}{1})' to 'varnames(k) = y{1}(1)', this error was solved.

Then the Error in RTM0 (line 273) comes:
'
Error using .*
Matrix dimensions must agree.

Error in RTMo (line 273)
piLocd_ = (sum(vb.*Po(1:n1).*Emind_(1:n1,:)) +..

Error in SCOPE (Line 327)
[rad, gap, profiles] = RTMo(spectral, atmo, soil, leafopt, canopy, angles, constants, meteo, options);
'

Do you ever encounter this error? Thank you!

Dear @winterwac, it is the Matlab issue, they introduced strings and matrix multiplication in the later version. If you could switch to Matlab 2016b or higher than it should be resolved.