HOW CAN I DEAL WITH NEGATIVE VALUS I AM RECEIVING AFTER PERFORMING DECOMPOSITION

1 回表示 (過去 30 日間)
sabitri
sabitri 2022 年 8 月 14 日
回答済み: Matt J 2022 年 8 月 14 日
I have performed periodic plus smooth decomposition on u.. Now i am getting p and s as periodic , smooth component. But they contain negative values which is creating problem in further calculation....what should i do now?

回答 (1 件)

Matt J
Matt J 2022 年 8 月 14 日
Threshold them?
x=[-2 -1 0 1 2 3]
x = 1×6
-2 -1 0 1 2 3
xpos=max(x,0)
xpos = 1×6
0 0 0 1 2 3

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by