How to write a command in Matlab to check the deviation between one variable and others to be within +- %20? as if not in the range would print false if within the range print true
For example, I want to compare R1,R2,R3 with R and should be with the range of plus/minus %20:
R = 0.62
R1 = 0.638
R2 = 0.6337
R3 = 0.6354
Thanks