Replacing numbers in the matrix
Show older comments
Hi,
I have matrices with logfile and data. The first 5 columns is the log fille that logs stimuli representation in time (an example, attached below ). The rows are time and the columns are events. The first column logs stimuli id in time. (No stimulus =0, stimulus : 1 2 3 4 5 or 6) The second column logs the trial stages(1=pre stimulus, 2=stimulus, 3=poststimulus interval); However stimulus durations are not exactly the same for all stimuli. Some have 40 rows some 41. I need make all stimuli the same length by adding or removing stimuli ids at the end of the stimulus without adding any new rows to the matrix. For example, make all stimuli to given desiered duration 40 rows by edding or removing missing or additional stimulus ids at the end of the stimulus in colomn 1 and column 2 Could anyone help with this?
2 Comments
I need make all stimuli the same length by adding or removing stimuli ids at the end of the stimulus without adding any new rows to the matrix.
Does that mean the number of rows has to remain the same as the original number of rows? That is impossible, because the number of rows in the given .xlsx file is the prime number 9371. There is no way, therefore, that the number of rows can be decomposed into an even multiple of a common stimuli duration.
EK
on 21 Jan 2024
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!