This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % A function generating a rectangular approximation for | |
| % the unit impulse function; width is delta | |
| % | |
| function imp = impls_fn(t, delta) | |
| imp = zeros(size(t)); | |
| imp = (stp_fn(t+delta/2)-stp_fn(t-delta/2))/delta; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Alec Bewsee | |
| //updated:2-8-14 | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include <math.h> | |
| int findSlot(float h[], float h_x) | |
| { | |
| int k, slot; | |
| for (k = 0; k<8; k++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <stdio.h> | |
| double getD(char * msg) | |
| { | |
| double local; | |
| printf("%s: ",msg); | |
| scanf("%lf",&local); | |
| return local; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| int A() | |
| { | |
| FILE * ip; | |
| float sum = 0.0, grade, avg, Maxgrade, Mingrade; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <stdio.h> | |
| //void main() | |
| { | |
| int inum = -9234; | |
| double fnum = 251.7366; | |
| printf("Integer Formats:\n\tDecimal: %i\n", inum); |