advice on how to type this formula
1 次查看(过去 30 天)
显示 更早的评论
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)
4 个评论
Dyuman Joshi
2023-11-1
移动:Dyuman Joshi
2023-12-16
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
2023-11-1
移动:Dyuman Joshi
2023-12-16
Your answer is probably what they were looking for ;-)
回答(1 个)
Walter Roberson
2023-10-28
syms t
x_1(t) = 1/2-1/pi*sin(4*pi*t)
3 个评论
Walter Roberson
2023-10-28
Well, let us try it.
Try #1:
x_1(t) = 1/2-1/pi*sin(4*pi*t)
That fails.
Walter Roberson
2023-10-28
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!