Filter löschen
Filter löschen

ASSIGNING A VALUE TO A VARIABLE

4 Ansichten (letzte 30 Tage)
henry tochukwu
henry tochukwu am 2 Dez. 2019
Kommentiert: henry tochukwu am 7 Dez. 2019
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 Kommentare
henry tochukwu
henry tochukwu am 2 Dez. 2019
symbolic.
with an example please
thanks
henry tochukwu
henry tochukwu am 2 Dez. 2019
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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by