How to display values in array

2 visualizzazioni (ultimi 30 giorni)
puja dutta
puja dutta il 26 Giu 2014
Commentato: the cyclist il 28 Giu 2014
I calculated manhattan distance for two array i.e dwell time and meanDwellTime.
disp(dwellTime)
A=meanDwellTime
for i=1:1:3
p(i,1)=sum(abs(dwellTime(i)-a(i)))
kk=p(i,1)
end
But it gives output like
kk=0.0200
kk=0.0170
kk=0.0230
How can be it represented in array.
Like:- kk=0.0200 0.0170 0.0230
please help me.Its urgent

Risposta accettata

the cyclist
the cyclist il 26 Giu 2014
Use this instead
kk(i)=p(i,1)
  2 Commenti
puja dutta
puja dutta il 27 Giu 2014
Modificato: puja dutta il 27 Giu 2014
Thanks a lot . Can you please tell me how can i call the m file in callback of push button.I want to run m file that would be connected to the push button
the cyclist
the cyclist il 28 Giu 2014
I suggest you open that as a new question.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by