Hi, I am writing a code that as follows:
Now, I am trying to find the first instance the value of maximum comes in the "arr" Array.
I have tried the following:
x = find(maximum == arr,'first') ;
In the 1st and 2nd try, when I use fprintf to detect the x, it prints blank, such as,
"x is "
In the 3rd try the following error occurs,
Second argument must be a positive scalar integer.
How can I fix it?