How to create a click-train with
이전 댓글 표시
DSFA
댓글 수: 10
John D'Errico
2017년 7월 22일
편집: John D'Errico
2017년 7월 22일
So what is your question? Is this just a doit4me? Note that MATLAB is a computational tool, it is not designed for exact millisecond interfaces. You may need to consider a different tool for this purpose, depending on your requirements.
frankenberry
2017년 7월 26일
frankenberry
2018년 4월 26일
Jan
2018년 4월 26일
@Patricia: As John I have to ask: What is your question?
I do not understand your message. What is a "click-train"? What is the meaning of "1s presented as 1 then two 1s then three 1s"? What is a SOA here? I do not get an idea of what you are talking of.
The SOA stays the same at 75 ms no matter if there is one,
two, or three ones.
This sounds like you have done something already. Then please post the code. Or is it a Simulink model? Then explain, which problem you want to solve. Take into account that most of the readers will not work exactly in your field.
frankenberry
2018년 4월 26일
frankenberry
2018년 4월 26일
Jan
2018년 4월 27일
@Patricia: I know a series of 1s as a "vector". E.g.:
v = [1,1,1,1]
I do not understand what "turning a 1 on and off" means. A number does not have a feature like "on" and "off".
I do not understand, what your code should do or what the comments mean,. E.g.:
clicklength = ((Fs/dur)/Fs); %click length is equal to 100 microseconds (i.e. 0.001 ms)
Why not simplifying it to
clicklength = 1/dur;
By the way, "100 microseconds" are not "0.001 ms".
Maybe the topic is very popular in this forum, but I did not heared of it yet. Again: What is your question? How can we help you? If you have a messy code and ask for improvements, post your code.
Jan
2018년 4월 30일
Your code looks okay. I'd omit the useless "clear,clc" and use fullfile instead of concatenating file names by [pth 'clicktrains_' ici_str '_' soa_str '_Fs32e3.xls'], but these are more cosmetic modifications. I do not see a potential for substantial improvements.
Jan
2018년 6월 15일
@Patricia: I've posted my comment as answer now. If it really helps you already, you can accept it. If you've found better details by your own, you can post them also and accept your own answer.
Stephen23
2020년 3월 26일
Original question from Google Cache:
"How to create a click-train with"
I need to create a click-train of 1s presented as 1 then two 1s then three 1s. The SOA is 75 ms. Each 1 is 100 microseconds and the interclick interval when there are two or three 1s is 4 ms. The SOA stays the same at 75 ms no matter if there is one,two, or three ones. It seems it should be quite easy.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!