Help With Matlab - Page 2 - GM Forum - Buick, Cadillac, Chev, Olds, GMC & Pontiac chat

Lounge For casual talk about things unrelated to General Motors. In other words, off-topic stuff. And anything else that does not fit Section Description.

Thread Tools Search this Thread
Old 01-16-2007, 04:50 PM   #11
Posts: n/a

Ok, i got some help with thte lab and i figured out how to create the images... just thought i'd share with you guys that helped me.

Top left image:
>> a(100,100)=0;
>> a(25:75,25:75)=1;
>> imshow(a)

Top Middle Image:
>> a(200,200)=0;
>> a(100:200,1:100)=1;
>> a(1:100,100:200)=1;
>> imshow(a)

Top Right Image:
>> a=zeros(200,200);
>> x=0;
>> for i=1:200;
a(i,: )=x;
>> imshow(a)

Bottom Left Image: (with respect to the above matrix)
>> b=a';
>> imshow(b)

Bottom Middle:
>> for i = 1:200;
for j =1:200;
>> imshow(a,[0 max(max(a))])

Bottom Right:
>> a=rand(200);
>> imshow(a)

Pretty easy now tha ti know what was going on!
  Reply With Quote
Old 01-16-2007, 08:24 PM   #12
Senior Member
True Car Nut
95naSTA's Avatar
Join Date: Feb 2003
Location: Philly
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
95naSTA is on a distinguished road

Wow, that is pretty easy.
95naSTA is offline   Reply With Quote

Related Topics
Thread Thread Starter Forum Replies Last Post
HELP HELP HELP-Did Pep Boys Damage Bonnie?? mprather 1992-1999 24 02-03-2010 08:21 AM
HELP HELP HELP, EXPERTS PLEASE !! statusplease 1992-1999 8 03-15-2008 06:49 PM
palm help (plz any help is good help) gojo83 Lounge 2 09-24-2007 10:34 PM
Back Three Plug wires NOT Coming off HELP HELP HELP VanFaasenC 2000-2005 1 10-04-2006 02:51 PM
Photoshop help! (FONT help now!) willwren Lounge 13 09-16-2003 03:34 PM

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -4. The time now is 05:40 AM.

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to and affiliated sites.