How to display values in array

2 次查看(过去 30 天)
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

采纳的回答

the cyclist
the cyclist 2014-6-26
Use this instead
kk(i)=p(i,1)
  2 个评论
puja dutta
puja dutta 2014-6-27
编辑:puja dutta 2014-6-27
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 2014-6-28
I suggest you open that as a new question.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by