Equating different integer values of a variable from an equation.

I want to calculate different values of y, from an equaltion (eg: y = 10./x), but I'll consider only integer values of y and neglect the others. I'll assign the x values. And finally I need to pair the (x,y) values to use them into anothe equation. Can anyone help me to do the task?

댓글 수: 1

You can test if a value is an integer by checking if the difference between the rounded value and the initial value is small enough.
What have you tried so far?

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2020년 9월 22일

댓글:

Rik
2020년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by