文档详情

分析matlab工程师简介william j palm linear algebraic equations.pptx

发布:2025-03-25约1.08万字共41页下载文档
文本预览下载声明

IntroductiontoMATLABforEngineers,ThirdEditionWilliamJ.PalmIIIChapter7Statistics,Probability,andInterpolationPowerPointtopanyCopyright?2010.TheMcGraw-HillCompanies,Inc.

BreakingStrengthofThread%Threadbreakingstrengthdatafor20tests.y=[92,94,93,96,93,94,95,96,91,93,...95,95,95,92,93,94,91,94,92,93];%Thesixpossibleesare...91,92,93,94,95,96.x=[91:96];hist(y,x),axis([909706]),...ylabel(’AbsoluteFrequency’),...xlabel(’ThreadStrength(N)’),...title(’AbsoluteFrequencyHistogram...for20Tests’)Thiscreatesthenextfigure.7-2

Histogramsfor20testsofthreadstrength.Figure7.1–1,3

Absolutefrequencyhistogramfor100threadtests.Figure7.1–2.Thiswascreatedbytheprogramonpage298.7-4

Useofthebarfunctionforrelativefrequencyhistograms(page299).%Relativefrequencyhistogramusing...thebarfunction.tests=100;y=[13,15,22,19,17,14]/tests;x=[91:96];bar(x,y),ylabel(’RelativeFrequency’),...xlabel(’ThreadStrength(N)’),...title(’RelativeFrequencyHistogram...for100Tests’)Thiscreatesthenextfigure.7-5

Relativefrequencyhistogramfor100threadtests.Figure7.1–37-6

Useofthehistfunctionforrelativefrequencyhistograms.tests=100;y=[91*ones(1,13),92*ones(1,15),93*ones(1,22),...94*ones(1,19),95*ones(1,17),96*ones(1,14)];x=[91:96];[z,x]=hist(y,x);bar(x,z/tests),...ylabel(’RelativeFrequency’),xlabel(’ThreadStrength(N)’),...title(’RelativeFrequencyHistogramfor100Tests’)Thisalsocreatesthepreviousfigure.7-7

Commandbar(x,y)hist(y)hist(y,n)hist(y,x)[z,x]=hist(y)[z,x]=hist(y,n)[z,x]=hist(y,x)DescriptionCreatesabarchartofyversusx.Aggregatesthedatainthevectoryinto10binsevenlyspacedbetweentheminimumandmaximumvaluesiny.Aggregatesthedatainthevectoryintonbinsevenlyspacedbetweentheminimumandmaximumvaluesiny.Aggregatesthedatainthevectoryintobinswhosecenterlocationsarespecifiedbythevectorx.Thebinwidthsarethedi

显示全部
相似文档