How to write a character sequence for parallel symbol?

62 visualizzazioni (ultimi 30 giorni)
We use \perp to insert a perpendicular symbol "⊥" but I haven't found a charater sequence for the symbol parallel. How can we write its charater sequence?

Risposta accettata

Akshit Bagde
Akshit Bagde il 16 Lug 2021
Modificato: Akshit Bagde il 16 Lug 2021
\parallel is not available in MATLAB - here
However, You can use either
'\mid\mid' or '||'

Più risposte (2)

KSSV
KSSV il 16 Lug 2021
Modificato: KSSV il 16 Lug 2021
\parallel
MATLAB uses the latex symbols. If it doesn't work, you may go for '||' this right?

Walter Roberson
Walter Roberson il 16 Lug 2021
Modificato: Walter Roberson il 16 Lug 2021
abc||def
abc\|def
abc{\parellel}def
xlabel('$abc||def$', 'interpreter', 'latex')
ylabel('$abc\|def$', 'interpreter', 'latex')
title('$abc{\parallel}def', 'interpreter', 'latex')
Warning: Error updating Text.

String scalar or character vector must have valid interpreter syntax:
$abc{\parallel}def
So abc||def and abc\|def are supported for drawing, but not \parallel

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by