advice on how to type this formula
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi, could I get some guidence on how to type this out, wouldn't it be: x1(t) = 1/2-1/pi*sin(4*pi/t)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523501/image.png)
4 comentarios
Dyuman Joshi
el 1 de Nov. de 2023
Movida: Dyuman Joshi
el 16 de Dic. de 2023
You are, of course, right Walter. However, I am (still) skeptical if that is what exactly OP wants.
We can infer this, but as OP has not specified any information about that, thus I thought of providing this as an alternative.
If OP does not provide any more information, I will move my answer to a comment.
Walter Roberson
el 1 de Nov. de 2023
Movida: Dyuman Joshi
el 16 de Dic. de 2023
Your answer is probably what they were looking for ;-)
Respuestas (1)
Walter Roberson
el 28 de Oct. de 2023
syms t
x_1(t) = 1/2-1/pi*sin(4*pi*t)
3 comentarios
Walter Roberson
el 28 de Oct. de 2023
Well, let us try it.
Try #1:
x_1(t) = 1/2-1/pi*sin(4*pi*t)
That fails.
Walter Roberson
el 28 de Oct. de 2023
Try #2:
t = 0:.1:1; %some specific numeric t values
x_1(t) = 1/2-1/pi*sin(4*pi*t)
That fails as well.
Looks like, Yes, you do need syms t in order to write that formula.
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!