Hi, I have the following data:
- A vector of physical stimulus properties, something like: [0.8, 0.7, 0.56,0.4,....,0.01]
- For each of the vector's elements, the response of the subject (either "0" or "1").
What I want: I want to bin the data with the physical stimuli, and determine the percentage of "1"s responded for this bin (it would be the percentage of correct answers for the bin).
Additionally, I want a curve fittet through these percentages. I know about the hist function, but I am not sure of how I can apply it here. Thanks