Showing posts with label MATLAB. Show all posts
Showing posts with label MATLAB. Show all posts

Tuesday, January 26, 2010

Engineers love the Steelers

I haven't blogged since November 19th! That's so messed up of me. Alot has happened since then:

The calendar has changed from 2009 to 2010

Well that's pretty much it. The Steelers didn't make it to the playoffs this year and the Olympics haven't started yet so life's been slow. I have a plan for an epic upcoming blog, but it will have to wait. For now, enjoy this feat of Matlab code that demonstrates the boredom that an engineer feels in the absence of exciting football.

CODE:
%Jamie Haney
%January 2010
%GO STILLERS

clear all
clc;

phi=-2*pi:0.01:2*pi;
a=8;
b=2;

x1=(a-b)*cos(phi)+b*cos([(a-b)/b]*phi); %hypercycloid
y1=(a-b)*sin(phi)-b*sin([(a-b)/b]*phi);

x2=x1+10;
y2=y1-10;

x3=x1;
y3=y1-20;

plot(x1,y1,'y',x2,y2,'r',x3,y3,'b')

Tuesday, September 30, 2008

Damn it feels good to be a grad student

PAYDAY!! Whoop thaaa raaa (thats my slur of "whoop there it is"). Besides being stuck in 1992 as my post today has proven, I am also soooo happy to have made bank. This is my first pay check in awhile and crap, I just realized something. Like as I was typing I realized something that sucks. I was all stoked cause my pay was huge! But I realized that it includes my last month of pay from the Lupus Center so I won't be getting this much every month. Eh well, at least this month looks good.

I want to take this time to let you guys know what I do everyday that you don't see me. I am really proud of the work I have been doing and I'd like to share:

Class 1 - Mathematical Methods in Chemical Engineering
This class can be defined as the area under the hard as hell curve. But I'm still going, falling behind I promise you, but moving just the same. Fun fact about this class: Dr. Federspiel took us all out for an end of the month happy hour to Hem's where the beers were on him. Fun right? Oh yea and guess what else? Thanks to a Miller Light promotion, Dr. Fed's bottomless generosity, and Craig's skeezy way of including himself in the party - BOTH Craig and I were selected from a raffle, individually, and left the bar with $600 total to go on a spring break trip. Look out, JAMAICA!!!!

Class 2 - Cardiovascular System Dynamics and Modeling
This class is the definition of bioengineering and I absolutely love it. All of our assignments have been intense programming and modeling of the cardiovascular system as an electrical circuit (makes me wanna get a tattoo real bad). I want to show you my code but an anonymous reader has told me that was lame.... Oh well, EFF them:



OOOHHhh, check out that human input impedance spectra. Doesn't seeeeem impressive BUT I had to perform fourier transforms into the frequency domain and then convert back to time domain for analysis. If you don't know what I am saying, you're cool, stay that way ;-)

Now there's a sexy plot! The clinical curve is real human arterial pressure data... the dumber looking bottom curve is what I did! Haha, it's actually good though, since that curve was modeled after a circuit composed of only 2 resistors and a capacitor arranged in parallel. Who's laughing now?! Hmm, no one is, good point, let's change the subject...

Lastly, is my TA class. How I love people who are just learning MATLAB... so frustrated, so hateful, if only they knew MATLAB is the language of technical computing. No really, it is, look here. It's fun.

So I don't ride the 54C to school anymore since my lab has a parking lot. This means I don't get my daily fix of Pittsburgh's best characters. When a door closes, however, a window always opens -- my gym is a gold mine of weirdos! I won't elaborate now but trust me, sweaty, middle-aged nurses and business women make for great talking points ;-)

Monday, July 7, 2008

Fast and Loose

I tried to fast yesterday. It was Craig's idea to DETOX after the week's events of binge drinking, eating, hookah and other patriotic past-times. I figured I wouldn't eat all day Sunday or Monday. This would allow me to digest all the damage I have accumulated over the weekend and start fresh.

It's not that I couldn't handle it cause I could! I was just bored as hell and cooking a large Sunday dinner feast seemed to be the answer. It was great, I made spinach and provolone stuffed pork loin and homemade mashed potatoes.

>> This blog blurb is being entered from the MAC store! I am picking up my broke ass Mac Book and playing around on the Mac Air. Everyone here is very nic <<

I had to X out the window cause the guy who was helping me was coming back.

I don't have a lot to say today but I feel bad cause I have only blogged twice so far and I need something to do while my computer installs MATLAB. I just got it fixed and now I am going to blow its RAM with the mega-MathWorks. Also, how bout that, me getting back into MATLAB, ah I am so excited. Be prepared for frequent screen shots.

I will leave you with this list I thought out while I was walking from my house to the MAC store:

TOP 5 MOVIE SEQUELS THAT ARE BETTER THAN THE ORIGINAL:

5. The Mighty Ducks 2 (some may know it as D2: The Mighty Ducks)

4. Star Wars 2 (which is Return of the Jedi, I think, if I am wrong, than this entry is void because Return of the Jedi is the BEST! But all the old Star Wars are awesome, that's why this is only entry #4)

3. Each progressive Harry Potter is better than the last, however, none of them are better than the books.

2. Back to the Future 2 (We get to go to the 50's and to the future to see Biff!)

1. X-MEN 2 (So good I didn't even want to see the first one!)

My YouTube Playlist of the Minute