MATLAB Answers

Matlab Homework that im struggling with

조회 수: 2(최근 30일)
Jacob Brackett
Jacob Brackett 2020년 3월 4일
댓글: Jacob Brackett 2020년 3월 5일
OK, this is my homework asignment that I am working on and having trouble getting started. I believe I can write code to solve using cramers rule however, I dont know how to prompt the user to enter the number of equations/unknowns, between 2 and 5. Then Im not sure how to prompt the user again for them to enter the constants and coefficents for each equation. If yall could give me any insight on how to do this I would be very grateful.

답변(1개)

Jim Riggs
Jim Riggs 2020년 3월 4일
To prompt a user to enter a value, try:
x = input('Enter the number of equations (from 2 to 5): \n')
  댓글 수: 4
Jacob Brackett
Jacob Brackett 2020년 3월 5일
Ok, @John D'Errico how would you suggest doing it. This is my first semester of coding and I'm still learning the basics.

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

Community Treasure Hunt

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

Start Hunting!

Translated by