필터 지우기
필터 지우기

ASSIGNING A VALUE TO A VARIABLE

조회 수: 4 (최근 30일)
henry tochukwu
henry tochukwu 2019년 12월 2일
댓글: henry tochukwu 2019년 12월 7일
please I want to know if it is possible to write an equation containing a variable before writing down the values. e.g V = a+3, before writing down the value of a.
  댓글 수: 3
henry tochukwu
henry tochukwu 2019년 12월 2일
symbolic.
with an example please
thanks
henry tochukwu
henry tochukwu 2019년 12월 2일
I was given an assignment with the equation f = 5(t-32)/9 and was asked to insert the equation before assigning a value to the variable t.
i.e f = 5(t-32)/9
then assign a value to t, but it is not working
I want to know if there any process involved

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 12월 2일
f = @(t) 5*(t-32)/9
or
syms t
f = 5*(t-32)/9
  댓글 수: 9
Matt J
Matt J 2019년 12월 2일
@henry, if you consider your question answered, you should Accept-click the answer you prefer.
henry tochukwu
henry tochukwu 2019년 12월 7일
din't see accept on steven lords answer, so I had to accept another answer.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by