B =
syms x
B = [0 1 2*x 3*x^2]
B.'
Or for x to be a numeric variable?
x = 2.2;
B = [0 1 2*x 3*x^2]
B.'
Either way, you have to define x before you use it.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!