Thank you. In your suggestion, is there a way to associate x-axis variable t with time (seconds). I tried but the code does not work them if I use Quantity on t.
Thank you for sharing your expert knowledge. You given command syntax works. I have tried to adapt it when the y-axis quantity is defined as a function but it runs into syntax errors and no value is plotted.
In the attached code, the first plotting command (when time is not defined as a second quantity) works. But the second plotting command does not work.
I will be extremely thankful if you can suggest how to fix this!
The way you have defined v[t], it accepts only pure numbers as t, not quantities. Also, UnitSimplify[Quantity[v[t]], "Volts"] is incorrect, try with the very convoluted Quantity[v[QuantityMagnitude[t, "Seconds"]], "Volts"], which purifies t before feeding it to v.
v[t]
t
UnitSimplify[Quantity[v[t]], "Volts"]
Quantity[v[QuantityMagnitude[t, "Seconds"]], "Volts"]
v
Thank you so much for sharing your expert knowledge of Mathematica. The problem is solved!
One way is to use FrameLabel, possibly with Quantity:
FrameLabel
Quantity
Plot[Quantity[t^2, "Watts"], {t, -1, 1}, Frame -> True, FrameLabel -> {{Automatic, None}, {None, None}}]