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!