필터 지우기
필터 지우기

how can i fill a vector with result of 4 instructions?

조회 수: 1 (최근 30일)
bay rem
bay rem 2015년 12월 24일
댓글: bay rem 2015년 12월 25일
hello, assuming that i have:
DE1 = pdist2(vecteur(1),V1(2),'euclidean')
DE2 = pdist2(vecteur(2),V1(2),'euclidean')
DE3 = pdist2(vecteur(3),V1(2),'euclidean')
DE4 = pdist2(vecteur(3),V1(2),'euclidean')
  • how can i write those 4 lignes on one ligne please and store results in a vector?

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 24일
DE = abs(vecteur([1:3 3]) - V1(2));
Are you sure you did not want the DE4 to use vecteur(4) ?
This code substitution is not applicable if your values happen to be symbolic matrices.
  댓글 수: 2
bay rem
bay rem 2015년 12월 25일
편집: bay rem 2015년 12월 25일
i wrote it wrong :
DE4 = pdist2(vecteur(4),V1(2),'euclidean')
THANK YOU SO MUCH
bay rem
bay rem 2015년 12월 25일
But here why it is vecteur([1:3 3]) not vecteur([1:3 4])

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by