Error using .* in Matlab R2014a?
Show older comments
Dear all,
I am new to Matlab and I am trying to run a series of scripts that were written few years ago to reproduce the data set created at that time. I am using version R2014a.
To obtain the desired output I should run 4 scripts one after the other. The first script is giving me no problems, but the second one is giving me these errors (the first 3 lines are in orange, the last 4 in red):
Warning: Variable 'samplename' originally saved as a string cannot be instantiated as an object and will
be read in as a uint32.
> In ro2_gen_fossil_emis_v2 at 64
Error using .*
Matrix dimensions must agree.
Error in ro2_gen_fossil_emis_v2 (line 85)
Emis = 1./tau.*(foss_CH4_burden);
I try to contact the person that originally wrote the scripts in a R2019a version of Matlab. We tried the same procedure and he could run the scripts with no problems. We double checked the error in line 85 and apparently the lines are identical. I even try to copy paste his line on my script, but the problem was still appearing.
Does anyone have any idea about what could cause this problem when running in R2014a instead of R2019a?
Unfortunately I have no means to get a newer version of Matlab.
Thanks everyone for helping!
Mat
Accepted Answer
More Answers (0)
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!