Engineering analysis : interactive methods and programs with by Y C Pao

By Y C Pao

Show description

Read Online or Download Engineering analysis : interactive methods and programs with FORTRAN, QuickBASIC, MATLAB, and Mathematica PDF

Similar computer modelling books

National Geographic (November 2005)

Washington, DC: The nationwide Geographic Society, 2005. The November, 2005 factor, quantity 208, No. five. 4to, wraps, 114 numbered pp. + unpaginated good points and advertisements. As New; pristine. faraway from its plastic mailing bag to experiment and write-up, then put in sealed garage. maximum grade. See test. characteristic articles: New Wrinkles on getting older, Acadia nationwide Park, within Nepal's Revolution, Stealth Cats, battle Letters, Undersea Oddballs, Maurice, los angeles.

All-in-One Electronics Guide

A entire electronics assessment for electronics engineers, technicians, scholars, educators, hobbyists, and someone else who desires to know about electronics. It’s like having six electric engineering path textbooks in a single useful condensed package deal. This e-book comes with fabrics that engineers truly use within the actual international with transparent, easy-to-read factors and with countless numbers of diagrams, photographs, and stronger snap shots.

Extra info for Engineering analysis : interactive methods and programs with FORTRAN, QuickBASIC, MATLAB, and Mathematica

Example text

To load MATLAB after it has been set-up and stored in a subdirectory of a hard drive, say C, we first switch to this subdirectory by entering (followed by pressing ENTER) C:\cd MATLAB and then switch to its own subdirectory BIN by entering (followed by pressing ENTER) C:\MATLAB>cd BIN Next, we type MATLAB to obtain a display of: C:\MATLAB>BIB>MATLAB Pressing the ENTER key results in a display of: >> which indicates MATLAB is ready to begin. Let us rerun the cases of matrix subtraction, addition, transposition, and multiplication previously considered in the FORTRAN and QuickBASIC versions.

While the rows are separated by ;, in each row elements are separated by comma. After the print out of the above results, >> sign will again appear. To eliminate the unnecessary line space (between A = and the first row 1 2), the statement format compact can be entered as follows (the phrase “pressing ENTER key” will be omitted from now on): >> format compact, B = [5,6;7,8] B= 5 6 7 8 Notice that comma is used to separate the statements. To demonstrate matrix subtraction and addition, we can have: >> A-B ans = –4 –4 –4 –4 >> A + B ans = 6 8 10 12 To apply MATLAB for transposition and multiplication of matrices, we can have: >> C = [1,2,3;4,5,6] C= 1 2 3 4 5 6 >> C' ans = 1 4 2 5 3 6 © 2001 by CRC Press LLC >> D = [1,2,3;4,5,6]; E = [1,2;2,3;3,4]; P = D*E P= 14 20 32 47 Notice that MATLAB uses ' (single quote) in place of the superscripted symbol T for transposition.

The speed of animation is retarded by the “hold” loops in both x- and y-rotations involving the interactively entered value of the parameter Damping. The MATLAB command pause enables Figure 4 to be read and requires the viewer to press any key on the keyboard to commence the animation. Notice that a statement begins with a % character making that a comment statement, and that % can also be utilized for spacing purpose. The xs and ys arrays allow the graphic window to be scaled by plotting them and then held (by command hold) so that all subsequent plots are using the same © 2001 by CRC Press LLC FIGURE 6.

Download PDF sample

Rated 4.92 of 5 – based on 49 votes