MATLAB homework help request

조회 수: 2 (최근 30일)
Cagan Sevketoglu
Cagan Sevketoglu 2020년 8월 18일
답변: Sara Boznik 2020년 8월 18일
1) Ask a number from user, if an entered number is less than zero, write a MATLAB code that calculates the absolute value of entered number.
2) Write a MATLAB code that asks a number from user, then calculates the sum of numbers from zero to an entered number.
3) Solve the given LES (Linear Equations System) in MATLAB by using Gauss Jordan Elimination Method.
  댓글 수: 1
James Tursa
James Tursa 2020년 8월 18일
What have you done so far? What specific problems are you having with your code? You can look at the following functions to help you with the first two:
doc input
doc abs
doc colon
doc sum

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

답변 (1개)

Sara Boznik
Sara Boznik 2020년 8월 18일
It was told to me that I should not give the whole homework answers.
But I can give you advises:
  1. if
  2. for loop (also formula exist)
  3. you have to do 2 matrix and then use \ (I hope you know what is Gauss Jordan Elimination Method)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by