I have a matlab code and wants to convert into appropriate Simulink model. However i'm new to Simulink, having only Matlab experience. Please Guide me to convert to appropriate model.
t=(0:1000)/1000*10*pi;
x = (t).*sin(t);
y = (t).*cos(t);
z = t;
plot3(x,y,z,'c') ;
h=line('Color',[1 0 0],'Marker','.','MarkerSize',40,'EraseMode','xor');
n=length(x);
i=1;
while n
set(h,'xdata',x(i),'ydata',y(i),'zdata',z(i));
drawnow;
pause(0.0005)
i=i+1;
end
I followed following steps to design model of refer to signal generation model in Simulink from matlab
t=(0:1000)/1000*10*pi;
x = (t).*sin(t);
y = (t).*cos(t);
z = t;
the question is how to I set the step 1 from reference and also, how to give the output to VR SIGNAL EXPANDER in order to move VR Ball in the output generated path. ?