# MATLAB program

This is my Matlab program so far:

>>clc

>>clear

>>r=input('Wheel radius?');

>>s=4*pi;

>>theta=s/r;

>>p=2*pi*r;

>>t=0:2*pi:4*pi;

>>plot(t,theta)

>>title('Translational & Rotational Velocity Plot')

>>xlabel('Independent variable')

>>ylabel('Wheel displacement')

I have started and I think I'm getting close to running - the plot will not display though - where is the glitch? Thanks in advance. I have also attached a Matlab wheel for your reference.

© BrainMass Inc. brainmass.com October 9, 2019, 4:06 pm ad1c9bdddfhttps://brainmass.com/engineering/computer-engineering/matlab-program-22349

#### Solution Preview

Hi,

From your code, I see that you are calculating theta only once. Try to use ...

#### Solution Summary

This solution addresses the glitch in the provided computer program. By using the MATLAB wheel as a reference, and knowledge of how thetas work within the program, the answer is resolved.

$2.19