Filter löschen
Filter löschen

How can i imlpement a 2D function on. Matlab

2 Ansichten (letzte 30 Tage)
Deniz Bozdogan
Deniz Bozdogan am 7 Jul. 2021
Bearbeitet: Stephen23 am 7 Jul. 2021
I want to implement the following function on matlab, how can i do it, can you help me?. Thanks in advance
  1 Kommentar
Stephen23
Stephen23 am 7 Jul. 2021
Bearbeitet: Stephen23 am 7 Jul. 2021
The logic is inconsistent. The following two conditions are both duplicated:
m = 0, n = -1
m = -1, n = -1

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 7 Jul. 2021
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 Kommentare
Deniz Bozdogan
Deniz Bozdogan am 7 Jul. 2021
it always returns h1 as -1 since m=1 n=1
KSSV
KSSV am 7 Jul. 2021
Bearbeitet: KSSV am 7 Jul. 2021
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by