Enter the following variables: a= 123456, b=31/4 , c=cos(π/8). Now calculate

조회 수: 2 (최근 30일)
Joel Dolot
Joel Dolot 2021년 3월 20일
답변: Les Beckham 2021년 3월 20일
a) (a + b)/c
b) 2a – 3b
c) a/ (3b +4c)

답변 (2개)

Les Beckham
Les Beckham 2021년 3월 20일
You really should go through the lessons in the Matlab Onramp tutorial if you don't understand how to do these very basic things.
Also, you are much more likely to get help if you show that you actually tried to solve the problem instead of assigning your homework to the Answers community.

Walter Roberson
Walter Roberson 2021년 3월 20일
a = 12; b = 34; c = .56;
a) (a + b)/c
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
In MATLAB, the only times that it is valid to have a non-matching bracket or brace, is inside a comment or a character string. Therefore the
a)
part of the required expression is invalid.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by