How to use Greek Letters in equation
140 次查看(过去 30 天)
显示 更早的评论
Hello
I am still new to MatLAB but below is my attempt on using greek letters in my equation. It comes up with an error saying "Invalid use of operator" and some other errors in connector which is confusing for me. Been trying to fix it but no hope.
Any help will be appreciated.
k1 = \omega .* sqrt((\mu .* \epsilon)/(2)) .* sqrt((1 + ((\sigma)/(\epsilon .* \omega))^2) + 1);
k2 = \omega .* sqrt((\mu .* \epsilon)/(2)) .* sqrt((1 + ((\sigma)/(\epsilon .* \omega))^2) - 1);
k = k1 + i.*k2;
disp(k)
6 个评论
采纳的回答
更多回答(1 个)
Stephen23
2022-7-26
The MATLAB approach:
syms omega mu epsilon sigma
k1 = omega .* sqrt((mu .* epsilon)/(2)) .* sqrt((1 + ((sigma)/(epsilon .* omega))^2) + 1);
k2 = omega .* sqrt((mu .* epsilon)/(2)) .* sqrt((1 + ((sigma)/(epsilon .* omega))^2) - 1);
k = k1 + i.*k2
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!