필터 지우기
필터 지우기

Info

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

How to chech if a number is a sum of certain elements (not all elements) in a vector?

조회 수: 1 (최근 30일)
Muhammad
Muhammad 2018년 4월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have a number; let's say b = 4.5 and a vector A = [1,3,1.5,5,3,2,1]. I want to see if there exist a combination(s)/sum of elements in A which is equal to b or not?

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by