필터 지우기
필터 지우기

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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by