Hello!! Does anyone know how to type " | " on a keyboard on windows pc?

16 次查看(过去 30 天)
Hello!! Does anyone know how to type " | " on a keyboard on windows pc?

回答(2 个)

Star Strider
Star Strider 2019-10-29
I use: Shift+\ to get |. (QWERTY keyboard, U.S.)
It is also char(124)

Steven Lord
Steven Lord 2019-10-29
It depends on which keyboard layout you're using. On my QWERTY keyboard, I press and hold Shift and then the key on the far right of the main keyboard section below Backspace and above Enter. For many countries' QWERTZ layout it looks like AltGr + W gets you the | character.
If you're having difficulty finding this character on your keyboard, you could always explicitly call the or function. or is the function name associated with the | operator.
A = true | false % true
B = or(true, false) % also true

类别

Help CenterFile Exchange 中查找有关 Desktop 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by