Borrar filtros
Borrar filtros

How can i imlpement a 2D function on. Matlab

2 visualizaciones (últimos 30 días)
Deniz Bozdogan
Deniz Bozdogan el 7 de Jul. de 2021
Editada: Stephen23 el 7 de Jul. de 2021
I want to implement the following function on matlab, how can i do it, can you help me?. Thanks in advance
  1 comentario
Stephen23
Stephen23 el 7 de Jul. de 2021
Editada: Stephen23 el 7 de Jul. de 2021
The logic is inconsistent. The following two conditions are both duplicated:
m = 0, n = -1
m = -1, n = -1

Iniciar sesión para comentar.

Respuesta aceptada

KSSV
KSSV el 7 de Jul. de 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 comentarios
Deniz Bozdogan
Deniz Bozdogan el 7 de Jul. de 2021
it always returns h1 as -1 since m=1 n=1
KSSV
KSSV el 7 de Jul. de 2021
Editada: KSSV el 7 de Jul. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by