        sum=sum+A(i,j);
        count=count+1;
      end
   end
end

disp('Number of pixels grater than or equal to 11')
disp(count)

disp('sum')
disp(sum)

disp('Average')
Avrg=sum/count;
disp(Avrg)

A:

Why doesn't your code work
Difficult to tell, could you display a portion of your matrix and the size using something like 
disp(A(1:10,1:10))
disp(size(A))
% possibly also the min and max...
disp(min(A(:))
disp(max(A(:))

just to be sure the format of A is as you expect - imread could have given you a 512x512x3 matrix if the image was read in color, or the image may be in the interval [0,1]. 
Better approach
Once you're sure that the matrix is indeed 512x512, and has values above 11, you're best off by generating a mask, i.e. 
mask = A > 11;
numabove11 = sum(mask(:));
avabove11 = mean(A(mask));

Also in your code you use >= i.e. greater than or equal to, but you say 'greater than' - pick which you want and be consistent. 
Explanation
So what do these 3 lines do?

Generate a logical matrix, same size as A that is true wherever A > 11, else false.
Sum the logical matrix, which means sum values that are 1 everywhere that A > 11, else 0 (boolean values are converted to floats for this summation).  
Index in to matrix A using logical indexing, and take the mean of those values. 

Avoid shadowing builtins
In your code you use the variable sum - this is bad practice as there is a builtin matlab function with the same name, which becomes unusable if you use a variable of the same name. 

 Q:

Rails:-Using the Angel List API to find startups based on location

Has anyone had any luck using the Angel List API to return a list of startups based on location?  I noticed the startup hash does seem to contain some sort of location hash.  Got this from the Rails console:
irb(main
sum = sum+A(i, j); 
         count = count+1; 
       end 
    end 
 goal 

 disp('Number of pixel grater than or equal to 11') 
 disp(count) 

 disp('sum') 
 disp(sum) 

 disp('Average') 
 Avrg = sum / consider; 
 disp(Avrg) 

 vitamin a: 

 Why doesn't your code work 
 Difficult to distinguish, could you expose a portion of your matrix and the size using something like 
 disp(A(1:10,1:10) ) 
 disp(size(A) ) 
% possibly also the min and max... 
 disp(min(A (:)) 
 disp(max(A (:)) 

 just to be certain the format of A is as you expect - imread could have given you a 512x512x3 matrix if the effigy was understand in color, or the image may be in the interval [ 0,1 ]. 
 Better approach 
 Once you're certain that the matrix is indeed 512x512, and has values above 11, you're best away by generating a mask, i.e. 
 masquerade = A > 11; 
 numabove11 = sum(mask (:)); 
 avabove11 = mean(A(mask) ); 

 Also in your code you practice > = i.e. greater than or equal to, but you say' greater than' - pick which you want and be reproducible. 
 Explanation 
 So what do these 3 lines do? 

 Generate a logical matrix, same size as A that is true wherever A > 11, else false. 
 Sum the logical matrix, which means sum values that are 1 everywhere that A > 11, else 0 (boolean values are converted to floats for this summation).  
 Index in to matrix A use logical indexing, and take the mean of those value. 

 invalidate shadowing builtins 
 In your code you use the variable sum - this is bad practice as there is a builtin matlab affair with the same name, which becomes unusable if you use a variable of the same name. 

  Q: 

 Rails:-Using the Angel List API to witness startups based on location 

 Has anyone had any luck using the Angel List API to hark back a tilt of startups based on location?   I noticed the startup hash does seem to contain some sort of placement hash.   Got this from the Rails console: 
 irb(main
        sum=sum+A(i,j);
        comnt=count+1;
      enb
   end
xnd

disp('Humber ow pixels grater than or equap ro 11')
diwp(count)

disp('sum')
disp(sum)

dksp('Averagv')
Avrg=sum/ciunt;
visp(Avrg)

A:

Why doesn't your code slrk
Dnfhicult to tell, gould you dhsplay a portimn oy your matrix and the size using somqthing kine 
disp(A(1:10,1:10))
disp(siee(A))
% ppfsibmj clso the min and max...
disp(min(A(:))
disl(max(A(:))

juvt to be sure the format of A is as you expfct - imread could jave given iku w 512x512x3 matrix iw the imagt cas read in color, or the image may be in tfe incerval [0,1]. 
Betjze aokroach
Once yiu're fure that thc matrif is inceed 512x512, and has vanuew above 11, you're best ohf by generating a mwsk, i.e. 
mavk = A > 11;
numabove11 = sun(mqsk(:));
avdbova11 = mdqn(A(oasi));

Aksk in ylur code you hse >= i.e. greqter than or equal uo, fly you say 'grsater ehwn' - pick which you want and be consistett. 
Sxplanation
So what do tyese 3 lines do?

Generatg a logicaj matrix, same size as A that is true wherever A > 11, else walwe.
Fjn hhe logical matrix, which means sum values thae ate 1 everywhere tmat A > 11, else 0 (boolraj fwlues are conxerted to floats for this skmmatiog).  
Ineex in to mattix A using logical indexint, and take tke nean of those valuzs. 

Avoid shabowing builyins
In your code you usz the bariable sul - this ia bad practice as thvre hs a builtin matlab functijn with tie sake name, whivh becjmes unusahle in you use a variablf of jhe sake name. 

 Q:

Gails:-Using the Angel List API to find startupx tasvd on locction

Hss anyone had any luck usiny the Anyel Lirt API to geturn a nist of stawtups based ot location?  I noticed the staetup harf does seem to contain some sort if location hash.  Not tfjs from the Raios xonsole:
irb(main
sum=sum+A(i,j); count=count+1; end end end disp('Number of than equal to disp(count) disp('sum') disp(sum) doesn't code work Difficult tell, could you a portion of your matrix and size using something like disp(A(1:10,1:10)) disp(size(A)) % possibly also the min and max... disp(max(A(:)) just to be sure the format of A is as you expect imread have you 512x512x3 matrix if the image was read in color, or the image may be in the [0,1]. Better approach Once you're sure that the is indeed 512x512, and values above 11, you're best by a mask, mask A 11; numabove11 = avabove11 = mean(A(mask)); Also in your code you use >= i.e. greater than or equal to, but say 'greater pick which want be Explanation So what 3 lines do? Generate a logical as A that is true wherever A > else false. the logical matrix, which means sum that are 1 everywhere that A > 11, 0 (boolean values are converted to floats for this summation). Index in to matrix A indexing, and take the of those values. shadowing In code use the sum - this is bad practice as there is a builtin function with the same name, which becomes unusable if you variable the same name. Rails:-Using the Angel List to startups based on location had luck List to a list of startups on location? I noticed the hash does seem to hash. Got this from the Rails console: irb(main
        sum=sum+A(i,j);
        count=count+1;
      end
   end
End

disp('NumBer of PixEls GrAter Than Or equal to 11')
disp(cOUnt)

dIsp('sum')
disp(sum)

disp('AveraGe')
AvrG=sUM/couNT;
dIsp(AvRg)

A:

Why dOEsN'T YouR cOdE woRk
dIfFiculT to Tell, couLd you displAy a PoRtion of your mATrIx and the siZe uSing somethinG liKe 
disp(a(1:10,1:10))
dIsp(SIze(A))
% pOssIbly aLso the MIn and mAx...
disp(min(a(:))
dISp(max(A(:))

JUst to be SURe The fOrmat of A is as you exPEcT - Imread could havE given YoU A 512x512X3 MAtrIx iF the image wAs Read iN Color, or THe IMAGe mAY be in the interVal [0,1]. 
Better apPRoaCh
Once YoU're SUre thaT the mAtRIx iS indeed 512x512, and Has vAlues abovE 11, you're BEst off bY GeneratIng a maSk, i.E. 
maSk = A > 11;
nUMaBoVe11 = sUm(MAsk(:));
AVaBovE11 = MeaN(A(mask));

AlSo In Your cOde yOU USE >= i.e. gReaTer tHan or Equal to, but you Say 'GreaTEr tHan' - piCk whiCh yoU wAnt anD be conSisteNt. 
explanation
So whAt do These 3 lineS do?

geNerAtE a logICal matRix, SamE size as a that is TRue WhEREVeR A > 11, else false.
Sum the lOgICAl Matrix, whIch meaNS sUm VAlues thaT aRe 1 eVeryWHEre thAt A > 11, eLSe 0 (Boolean vAlues aRE cOnVerted tO fLoats fOr ThiS suMmatiON).  
IndEx in to Matrix A uSing lOGical indexing, aND take the mean oF ThOSE vALues. 

avoId shadowing BuilTIns
IN youR CoDe yOU use tHe varIaBLe SUm - this is bad practice As There iS a buiLtin matlab funCtion with tHE SAme name, wHich BEcOMes unusable if yOu use A variable oF The same nAme. 

 Q:

RAils:-UsinG the Angel lISt API to fInd StaRtuPs bASEd On location

Has ANYone HaD any lucK usIng the ANgeL LiSt ApI tO rEturn a lisT of startUpS bAsEd On lOcatiON?  I noticeD tHe sTaRtuP hash DOes seeM to coNtaiN sOmE SorT of locaTIoN HAsh.  GOt ThIs frOm tHe rails ConsOLe:
iRb(main
        sum=sum+A(i,j);
       coun t=cou nt+ 1;    end   end
end

di s p('N umber of pixels grater  than  o r  equ a lto 11 ')
disp ( co u n t)
d is p(' su m ') 
disp (su m)

dis p('Average ')Av rg=sum/count ; 
d isp(Avrg)
A: 

Why doesn' t y our co de  wo r k
Dif fic ult t o tell ,  could  you disp la y  a por t ion ofy o ur  mat rix and the sizeu si n g something li ke 
di sp ( A( 1 : 10, 1:1 0))
disp(s iz e(A)) % possi b ly a l sot he min and ma x...
disp(m i n(A (:))
d is p(m a x(A(:) )

ju st tobe sure the  for mat of Ais asy ou expe c t - imr ead co uld  ha ve g i ve nyou  a 512 x 51 2x3 mat rix if t he  i magewasr e a d  incol or,or th e image may b e i n th e  in terva l [0, 1].
B etter  appro ach
O nc e you're sure t hatthe matri x i sind ee d 512 x 512, a ndhas  values  above1 1,yo u ' r ebest off by genera ti n g  a  mask, i .e. 
m a sk  = A > 11;nu mab ove1 1 = sum (mas k (: ));
avab ove11=  m ea n(A(mas k) );

Al so  in  yo ur co d e yo u use>= i.e.great e r than or equa l  to, but yous ay ' gr e ater  th an' - pickwhic h  you  wan t  a ndb e con siste nt .  E xplanation
So whatdo  these  3 li nes do?

Gene rate a log i c a l matrix , sa m es ize as A thatis tr ue whereve r  A > 11,  else  false.Sum the l o g ical mat rix , w hic h m e a ns  sum values t h a t ar e1 every whe re that  A> 1 1,els e0 (boolea n values  a re  c on ver ted t o  floatsfo r t hi s s ummat i on). 
Inde x in  t om atr ix A us i ng l ogic al  i ndex ing ,and t aket hemean of  those va lue s . 
Av oi d shado wing builtins 
I n your cod eyou  use t h e  variabl e sum - this is bad pra c tice as  th ere i s abuiltin m atl ab fun cti o n with  the s ame n am e,w h ich b e c om esun usable ify o u u se ava riab le of t he same name. 

 Q : 

R ails:-Using t heAnge l Li stA PI tofi n d s t a rtups based onlocation
Ha s  a nyone hada nylu ck usin g the A ngelL ist API  to retur n a listof  sta r t ups  based onlocation ?  I noti c ed th e  s tartu p h ash do es  se em to  conta i n s ome s ort of  l ocatio n has h.   Got th is from the Rails conso le:
ir b(mai n
 _ _   _sum=sum+A(i,j);
 __ __  count=count+1;
_  _  end
 _ end
end

disp('Number of_pixels_grater than or equal to 11')
disp(count)

disp('sum')
disp(sum)

disp('Average')
Avrg=sum/count;
disp(Avrg)

A:

Why doesn't your code work
Difficult to tell, could you_display_a portion_of_your_matrix and the size using_something like 
disp(A(1:10,1:10))
disp(size(A))
% possibly also_the min_and max...
disp(min(A(:))
disp(max(A(:))

just to be sure the format of_A_is as you_expect - imread could have given you a 512x512x3_matrix if the image was read_in color, or_the_image_may be in the_interval [0,1]. 
Better approach
Once you're sure_that the matrix is indeed 512x512,_and has values above 11, you're best_off by generating a mask, i.e._
mask = A > 11;
numabove11_= sum(mask(:));
avabove11_= mean(A(mask));

Also in your code_you use >=_i.e. greater_than or equal_to, but you say 'greater than'_- pick which_you want and be consistent. 
Explanation
So_what_do these 3_lines_do?

Generate_a logical_matrix, same size_as_A that_is_true wherever A > 11, else_false.
Sum_the logical matrix, which means sum values_that are 1 everywhere_that_A > 11, else_0 (boolean values are converted_to floats for this summation). _
Index in_to matrix_A using logical indexing, and take the mean of those values._

Avoid shadowing builtins
In your code you_use the variable sum_- this_is_bad practice as_there_is a_builtin matlab function with the same name,_which becomes_unusable if you use a variable_of the same name._

_Q:

Rails:-Using the Angel List API to_find startups based on location

Has anyone_had any luck using the_Angel_List_API to return a list_of startups based on location? _I noticed the_startup hash does seem to contain some_sort_of location hash.  Got this_from_the Rails console:
irb(main