Origin Ver. 2021b and Service Release (Select Help-->About Origin): 9.8.5.204 Operating System: Windows 10 21H1
MATLAB Com server script given in origin scripting examples is throwing error, when used with latest version of Origin 2021b. Below is the line where the error (Type mismatch) occurs:
Error: Type mismatch, argument 3 Error in MATLABCallOrigin (line 81) dps.Add(dr, 202); % 202 for symbol+line plot
I didn't face such a situation with the previous versions of Origin. Would appreciate your help if anybody let me know how can I pass the argument to Origin without any Type mismatch or any quick fixes to avoid error.