Azzera filtri
Azzera filtri

umnsin of expressions - x and y are the rows and cols

1 visualizzazione (ultimi 30 giorni)
Ken
Ken il 19 Gen 2017
I am trying to evaluate this, but I want the answer in an expression in x and y since x and y are the rows and cols of a matrix and I use them for indexing; instead I am getting an integer as the answer. i.e. if (x-1 - Goal(1) +y - Goal(2)) is the minimum I want the answer to show that. :
min([(x-1 - Goal(1) +y - Goal(2)),(x+1- Goal(1) +y- Goal(2)),...
(x - Goal(1) +y-1 - Goal(2)),(x - Goal(1) +y+1 - Goal(2))])

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by