hi.i want to simulate ur10 kinematic .while running the Simulink there is this error:
Domain error. To compute complex results from real x, use 'acos(complex(x))'. how can I fix it? X is the x position of endeffector and it can not be complex. I have attached the Simulink file.
The error you have described is likely caused by the fact that x is lower than -1 or higher than 1. Note that acos(x) returns a complex number if x < -1 or x > 1.
Hello Luboš Smolík , facing same problem in simulink. I modelled the hydraulic system in SIMULINK. There is a function in model that take log10 of value which comes in between 0.0023-0.005 and its log is a negative value but matlab function returns with error like "To compute complex results from
real x, use 'log10(complex(x))'" but this value should be real number...