Typing an equation in matlab with greek letters
8 ビュー (過去 30 日間)
古いコメントを表示
Panagiota Chatzi
2019 年 5 月 20 日
コメント済み: Walter Roberson
2024 年 9 月 8 日
Hello,
I have a problem with the greek letters in the line below. How can i insert the greek letters and also multiply them with each other the same time?
rs=(kB*T)/(4*π*η*D0);
Thank you!
2 件のコメント
gonzalo Mier
2019 年 5 月 20 日
As far as I know you cannot use special symbols in matlab. You have to write them as pi and eta
dpb
2019 年 5 月 21 日
Indeed, not allowable, not just what you know... :)
variable-names has the rules.
It doesn't seem as though there really is any direct reason the character set couldn't be extended, but never seems to occur. Of course, there are potential issues with internationalization and not all character sets are the same, but doesn't seem insurmountable.
採用された回答
Walter Roberson
2019 年 5 月 21 日
編集済み: Walter Roberson
2019 年 5 月 21 日
syms kB T D0
Pi = evalin(symengine, '`π`');
nu = evalin(symengine, '`η`');
rs=(kB*T)/(4*Pi*nu*D0);
rs =
(T*kB)/(4*D0*`η`*`π`)
... Just don't ask to symvar(rs)
14 件のコメント
Mohammad Qaza
2024 年 9 月 8 日
any idea how I can write two consecutive greek letters like Delta theta without having theta as subscript?
Walter Roberson
2024 年 9 月 8 日
That is a good question. I cannot think of any way to do it.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!