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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

질문:

2014년 6월 26일

댓글:

2014년 6월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by