Kindly I want know how to use function called ‘carre’, to calculate a square periodic function?

1 回表示 (過去 30 日間)
Dodo
Dodo 2020 年 10 月 25 日
回答済み: drummer 2020 年 10 月 25 日
to calculate a square periodic function?
  1 件のコメント
Mario Malic
Mario Malic 2020 年 10 月 25 日
There is not such function, you were supposed to write a function that will do the task your professor told you to and name it 'carre'. Also, do not spam with your duplicate questions please.

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

回答 (1 件)

drummer
drummer 2020 年 10 月 25 日
% here you call your function
answer = carre(yourInputs) % you insert your inputs, whichever and how many they are.
% in the end of your script, you write your function carre
% there's no such function native in MATLAB as Mario said.
function outPut = carre(yourInputs)
% write your calculation here
outPut = YourResult;
end

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by