Creating functions with certain inputs but no outputs
이전 댓글 표시
How to create a function called x with two inputs. Two variables x and y then display the sum, difference , product and quotient.
example two variables are 6 and 7
6+7 = 13
6-7 = -1
6*7 = 42
6/7 = 0.857
답변 (1개)
madhan ravi
2020년 9월 27일
doc *
doc +
doc -
doc /
doc function
댓글 수: 1
madhan ravi
2020년 9월 27일
Follow the same for other operations.
카테고리
도움말 센터 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!