How to plug in one value a time from a matrix into a function (WaitSecs)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Yu Takahashi
am 23 Mär. 2020
Kommentiert: Yu Takahashi
am 24 Mär. 2020
Dear community members:
I am trying to plug in one value a time from a 5x1 matrix (A) to WaitSecs, which is a psychtoolbox 3 function that pauses for a given amount of time.
The following is my attemp:
A matrix contain values such as:
0.9277
1.2880
1.0043
1.2888
1.1997
for k = A
WaitSecs(A(:,i))
end
but ended up with the error : "Subscript indices must either be real positive integers or logicals."
thanks in advance
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Installation and Operational Settings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!