Nerd Fail part deux

And as always.. my wonderful colleague Joke comes to the rescue. She turned to me this morning and after chortling at my blog said ‘So, do you want a lesson in lines?’, I nodded. When the code she wrote started with ‘plot’ , I had that old familiar feeling..

‘This is going to be ridiculously simple isn’t it?’


linesTurns out, it is just one command that pretty much gets you anything you want. For instance:

plot([3 5],[0 8],’r’)
hold on
plot([0 5],[0 5],’b’)
plot([0 10],[2 2],’g’)
plot([2 2],[0 10],’–k’)

Gets you these lines –>


This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s