Effacer les filtres
Effacer les filtres

advice on how to type this formula

1 vue (au cours des 30 derniers jours)
Aster
Aster le 28 Oct 2023
Déplacé(e) : Dyuman Joshi le 16 Déc 2023
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 commentaires
Dyuman Joshi
Dyuman Joshi le 1 Nov 2023
Déplacé(e) : Dyuman Joshi le 16 Déc 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
Walter Roberson le 1 Nov 2023
Déplacé(e) : Dyuman Joshi le 16 Déc 2023
Your answer is probably what they were looking for ;-)

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 28 Oct 2023
syms t
x_1(t) = 1/2-1/pi*sin(4*pi*t)
  3 commentaires
Walter Roberson
Walter Roberson le 28 Oct 2023
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 le 28 Oct 2023
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by