note: findangles and findprismaticslength are functions i created to give each data in the form of array too
plot 3D-graph changing with input data array,problem with " Subscripted assignment dimension mismatch" error
1 view (last 30 days)
Show older comments
%global variables
global x y thetaz rC Rz gamma beta z
%data division
x=[-5:1:5];
y=[-5:1:5];
z=[10:2:30];
gamma=[-20:4:20];
beta=[-20:4:20];
thetaz=[-20:4:20];
n=numel(x); %check size of data array
hold on
for i = 1:n
[case1_theta1(i,:),case1_theta2(i,:),rC(i,:),Rz(i,:)]=findangles(x(i),y(i),thetaz(i));
[L1(i,:),L2(i,:),L3(i,:),rP(i,:)]=findprismaticslength(gamma(i),beta(i),z(i),rC(i),x(i),y(i),Rz(i));
pause(1) %pause(seconds)
end
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!