I am trying to plot a function Q11 of x. I get an error "Error using plot. A numeric or double convertible argument is expected." My Q11 is a function of x which I set a range for. Any help would be appreciated.
clcclear allsyms x%%KNOWN VARIABLES
E1 = 19; %MPA
E2 = 1.5; %MPAG12 = 1.0; %MPAv12 = .22;v21 = v12*(E2/E1);%%Q & S MATRIX
S = [1/E1 -v21/E2 0;... -v12/E1 1/E2 0;... 0 0 1/G12];Q = inv(S);%%T, R, & Q* MATRIX
T = [(cos(x))^2, (sin(x))^2, -2*cos(x)*sin(x);... (sin(x))^2, (cos(x))^2, 2*cos(x)*sin(x);... cos(x)*sin(x), -1*cos(x)*sin(x), (cos(x)^2)-(sin(x)^2)];R = [1 0 0; 0 1 0; 0 0 2]; Q_star = Q*R;%%SOLUTION FOR Q_bar
Q_bar = inv(T) * Q_star * T * inv(R);Q11 = Q_bar(1,1)x = -1.5708:.087:1.5708;plot(x,Q11)
Best Answer