フィルターのクリア

Problem creating an equation

2 ビュー (過去 30 日間)
Krish Desai
Krish Desai 2015 年 12 月 10 日
回答済み: Walter Roberson 2015 年 12 月 10 日
I am trying to create
f=e^(cos(t))+-2cos(4t)-(sin(t/12))^5
is the below the same thing or do I have to change it?
f=exp^(cos(t))-2*cos(4*t)-(sin(t/12))^5;

採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 10 日
f = exp(cos(t)) - 2*cos(4*t) - sin(t/12).^5;
The change to exp() without the ^ is necessary. The change to .^5 instead of ^5 is not necessary if t is a scalar but it is necessary if t is not a scalar.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by