How to create a click-train with
Mostrar comentarios más antiguos
DSFA
10 comentarios
John D'Errico
el 22 de Jul. de 2017
Editada: John D'Errico
el 22 de Jul. de 2017
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
el 26 de Jul. de 2017
frankenberry
el 26 de Abr. de 2018
Jan
el 26 de Abr. de 2018
@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
el 26 de Abr. de 2018
frankenberry
el 26 de Abr. de 2018
Jan
el 27 de Abr. de 2018
@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
el 30 de Abr. de 2018
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
el 15 de Jun. de 2018
@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
el 26 de Mzo. de 2020
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!