필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

The function without if statement

조회 수: 1 (최근 30일)
Master Blabla
Master Blabla 2020년 11월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
How to vectorize this function with if statement
Number = 100
VectorIm = zeros(5000, Number); %%% initialise VectorIm with 5000 and 100
i = 1; %%% counter of column
%%% Values - distance between VectorIm image and ManyVecImage image (float value)

답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2020년 11월 17일
That should to be the same as:
VectorIm = ManyVecImage(:,Values < 10000);
HTH

이 질문은 마감되었습니다.

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by