MATLAB prints ''Greek letters'' in chart text, but how about sprintf, compose, string or char functions?

92 views (last 30 days)
How can I define greek letters, inside one of these functions ? (sprintf, compose, string or char)

Accepted Answer

Abhishek Tiwari
Abhishek Tiwari on 1 Jul 2022
Edited: Abhishek Tiwari on 1 Jul 2022
Hi,
There are lots of pre defined greek letters. You just need to pick right index and use sprintf(). I have listed them below :
sprintf('%c ', 945:969)
ans = 'α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς σ τ υ φ χ ψ ω '

More Answers (0)

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!