フィルターのクリア

how to calculate max of symbolic variable?

17 ビュー (過去 30 日間)
shikhar
shikhar 2013 年 5 月 15 日
syms f,
y=int(sin(pi*f),f,1,2) %results -2/pi
z=int(cos(pi*f),f,1,2); %results 0
max(y,z) % shows an error
since y and z are functions of symbolic variable (i.e f) ,max(y,z) shows an error
how do i calculate the maximum value? please help.......
or is there anyway so that i can find y and z without declaring f as syms?.....so that max(y,z) can be found?...please do reply

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 15 日
max(double([y,z]))
  1 件のコメント
shikhar
shikhar 2013 年 5 月 15 日
thanks a lot, it will solve a bunch of problems of mine....

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by