Include Page | ||||
---|---|---|---|---|
|
...
Include Page | ||||
---|---|---|---|---|
|
...
Plot σx vs. ri
...
(Take 2
...
)
Step 4: Plot σx vs. ri: Take 2
Vectorize σx Calculation
Again, we pick MATLAB's brain on vectorization:
...
How do your values of sigma_x correspond to the values from beam2.m? Mine are the same ... yipppee!
Plot σx vs. ri: Take 2
Recycle the plot section from our program in Step 3. Copy this section and append it to your current program:
...
figure(1); %Create figure #1
clf; %Clear current figure
h=plot(,,'');
set(gca,'Box','on','LineWidth',2,...
'FontName','Helvetica',...
'FontSize',14);
%Set axis properties
set(h,'LineWidth',2);
%Set linewidth for curve
xlabel('');
ylabel('');
title('');
axis square; %Make axis box square
Go to Step 5: Plot σx σx vs. ri, ri (Take 3: File Input/Output)