フィルターのクリア

advice on how to type this formula

1 回表示 (過去 30 日間)
Aster
Aster 2023 年 10 月 28 日
移動済み: Dyuman Joshi 2023 年 12 月 16 日
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
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
Walter Roberson 2023 年 11 月 1 日
移動済み: Dyuman Joshi 2023 年 12 月 16 日
Your answer is probably what they were looking for ;-)

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 10 月 28 日
syms t
x_1(t) = 1/2-1/pi*sin(4*pi*t)
  3 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 28 日
Well, let us try it.
Try #1:
x_1(t) = 1/2-1/pi*sin(4*pi*t)
Unrecognized function or variable 't'.
That fails.
Walter Roberson
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)
Array indices must be positive integers or logical values.
That fails as well.
Looks like, Yes, you do need syms t in order to write that formula.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by