Is the data already in MATLAB? Can you upload a MAT file?
The reason I suggest that is that (a) there are many ways to load data into MATLAB, which can give subtly different MATLAB variables, and (b) then we can test code directly on your data, to see if our algorithm works for you.
Well, the main information I am trying to get at is the data types and how you are storing.
You make the statement "Each set of data is written in a separate Matlab table". That suggests to me that you have three variables of data type table. But your screen shot shows three columns of a single variable of data type double.
I'm just trying to sort this out, so that I don't suggest a solution that doesn't actually work for how your variables are stored.
I used arrayfun to calculate the probability to obtain a specific response (0, 1 or 2) for each of the 9 contrast values. But now that I had to deal with the reaction time as well, it got too complicated. Do you have any idea how I could use groupsummary for this?
Pressuming that the response made is always = 2 (also making it a bit easier this way), how can I get the mean reaction time for each of the 9 visual contrasts?
Take a look at the "Multiple Grouping Variables" and "Multiple Grouping Vectors for Vector Input" examples on the documentation page to which I linked. You should be able to adapt these to your data.
Instead of computing the mean Weight for people grouped by Gender and whether or not they are Smokers, you could compute the mean ReactionTime for items grouped by Response and Contrast.
Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.
Translated by
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.