What is the effect of using `global x` inside a MATLAB function?
-
A
Makes `x` read-only inside the function
-
B
Shares `x` across the base workspace and all functions that declare it global
-
C
Exports `x` to a file automatically
-
D
Converts `x` to a persistent variable