I am creating a script that will give me the 'Worst Case Percentage Error' I have the below script written to display my minimum value and maximum value. How do I make it display the largest of those? I tried using an 'IF Then' statement saying if min > max display min else display max, but this doesn't work properly because my minimum value is negative so it always displays the max.
disp('This is the minimum value of Percent Error: ');disp(min1);disp('This is the maximum value of Percent Error: ');disp(max1);disp('This is the Worst Case of Percent Error of Figure 1: ');if min1 > max1 disp(min1)else disp (max1) end
Best Answer