How can i imlpement a 2D function on. Matlab

I want to implement the following function on matlab, how can i do it, can you help me?. Thanks in advance

1 件のコメント

Stephen23
Stephen23 2021 年 7 月 7 日
編集済み: Stephen23 2021 年 7 月 7 日
The logic is inconsistent. The following two conditions are both duplicated:
m = 0, n = -1
m = -1, n = -1

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

 採用された回答

KSSV
KSSV 2021 年 7 月 7 日

0 投票

m = 1 ; n = 1 ;
if m == 1 && n == -1
h1 = 1 ;
elseif m == 0 && n == -1
h1 = 1 ;
elseif
.
.
.
.
end
Add your other cases.

2 件のコメント

Deniz Bozdogan
Deniz Bozdogan 2021 年 7 月 7 日
it always returns h1 as -1 since m=1 n=1
KSSV
KSSV 2021 年 7 月 7 日
編集済み: KSSV 2021 年 7 月 7 日
Why? You don't want to change values of m and n?
Write it to a function with m, n as inputs and h1 as output.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 7 月 7 日

編集済み:

2021 年 7 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by