How to draw the letter phi on matlab?

60 ビュー (過去 30 日間)
Luc
Luc 2024 年 4 月 2 日
回答済み: Voss 2024 年 4 月 4 日
Hello, I have a home work where I need to draw the Greek letter phi on matlab but I can’t find the right equation to do it. Can somebody help me? I would like to draw it by using equations for the x and the y.
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2024 年 4 月 2 日
Draw as in?
Luc
Luc 2024 年 4 月 4 日
I have a script that follows the equation and I need this equation. For example if i put x=cos(T) and y=sin(T), T being my variable, it will draw a circle. I already have the script to draw it I juste need the equation. I tried to do an approximate form by using a "for" loop and an "if" loop inside it but it is not enough for my teacher.

サインインしてコメントする。

回答 (2 件)

Aquatris
Aquatris 2024 年 4 月 2 日
Here are bunch of greek characters and how you can put them in a string/character:
sprintf('%c ', 910:1000)
ans = 'Ύ Ώ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ ΢ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ Ϗ ϐ ϑ ϒ ϓ ϔ ϕ ϖ ϗ Ϙ ϙ Ϛ ϛ Ϝ ϝ Ϟ ϟ Ϡ ϡ Ϣ ϣ Ϥ ϥ Ϧ ϧ Ϩ '
phi = sprintf('%c',934)
phi = 'Φ'

Voss
Voss 2024 年 4 月 4 日
x = 0.4;
y = 0.3;
text(x,y,'\phi')

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by