필터 지우기
필터 지우기

i had two values x and y and their sum is equal to z. i need matlab code for that

조회 수: 1 (최근 30일)
nishitha
nishitha 2014년 10월 11일
댓글: Image Analyst 2014년 10월 11일
i had two values x and y and their sum is equal to z. Now i need to write matlab code for that. So please send me as soon as possible.

답변 (1개)

Image Analyst
Image Analyst 2014년 10월 11일
There is no code to do that. x and y sum to (x+y) and that may or may not equal z. For example, if x=3 and y=9, there's no way that their sum will equal 42 instead of 12. 12 is what the sum is . If you need to clarify, like you want a new x and y that have the same relative ratio and those sum to z (as shown below), then please do clarify.
xNew = z * xOld / (xOld+yOld);
yNew = z * yOld / (xOld+yOld);
  댓글 수: 2
nishitha
nishitha 2014년 10월 11일
if i have a two values x and y and their sum is equal to z. now i want the matlab code for this.

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by