This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 0.0251 Steel = 0.0127 0.0115 0.0127 Square = 0.0211 0.0115 0.0228 Steel_Square = 0.0115 %Blake Junak %Section 2 %This script is designed to calculate a value of a function between a %certain range for the x and y variables. %Ranges x=-10:1:10; y=-15:1:15; Distortion=; for i=1:length(x); for j=1:length(y); Distortion(i,j)= (.5*x(i)^3+(1/3)*y(j)^3)*exp(1E-3*x(i)^2)*exp(1E-3*y(j)^2); end end Maximum_Distortion=max(Distortion(i,j)) [imax,jmax]=find(Distortion==Maximum_Distortion); x_value=x(imax) y_value=y(jmax) >> run('/Users/bjunak5/Documents/MATLAB/LABHW10B2.m') Maximum_Distortion = 2.2490e+03 x_value = 10 y_value = 15 >>...
View Full Document
This note was uploaded on 04/02/2012 for the course EGR 102 taught by Professor Hinds during the Spring '09 term at Michigan State University.
- Spring '09