Community Profile

Contact

Top 1% contributor

But what if you want to replace the values? m(any(m ==0,2),:)=[1 1 1]; This doesn't work, I get a dimension mismatch problem. ...

61060 views

Posted 6 years ago

us, very cool. If you want to get rid of any row that has 0's in it m = m =

Bruno, Is there any reason that I would get different values for the output of histcn max(loc) and size(count)? I have not had...

12971 views

Responded 6 years ago

Thank you Bruno... The extreme speed up I see using accumarray may negate the need to bin all of the index values for storage. ...

Thank you very much Bruno, and others, for giving your advise... I had all of the resources to accomplish number 2... haven't ...

Bruno... I can't believe I missed the funcitonality of histcn and accumarray!! This definitely gets me closer to my ultimate re...

I understood, and appreciate your help. accumarray it is!! I'll post my solution when I figure this function out. Anthony

Bruno or anyone that has looked through the thread, I'm beating myself up here... I just can't see through to the end. Histcn ...

I feel like I am sooo close.... My issue is with finding the intersection between 3 sparse logical matrices idxr, idxa, and id...

So I think a couple lines fixed the problem: %%%%%% bin_size = 100; r_bin_max = ceil((((nanmax(double(r_4d(:))))))/bin_size); r...

Thank you Matt and Bruno!! I apologize for not staying with this topic, but I have quite a bit on my plate... and I am taking y...

Thank you for your help, I apologize for my slow learning... you guys really are very good! Anthony

Sorry to "double" post this (seems to fit here much better than the other thread)... but I think I am starting to see the light ...

Bruno, I think you are right on with your statement "It seems you are trying to visualize what HISTN does in term of geometry, ...

Bruno, I had downloaded your histcn function at one point to try and understand how it could be applied to my problem, but I mu...

I have two questions concerning the above and something else that goes to the above 1. I am curious about the best way to build...

Matt, that is a very good point. but I use the index values to pick out points in a 3d xyz data structure, add them and replace ...

Bruno, That is a solid!! And you are right, transpose and it screams. Thank you again!! Anthony

Latest problem.... I have a matrix NxM that is N indexing vectors. Some of these vectors have very few index values, but they ...

I screwed up the code: npa = 1.3; bwaz = 2; az1 = 0; gamma = az1+(bwaz/cosd(az1)^npa)/2; solve('az2 - (bwaz/cosd(az2)^npa)/...

10431 views

here is the code: npa = 1.3; bwaz = 2; az1 = 0; gamma = az1+(bwaz*cosd(az1)^npa)/2; solve('az2 - (bwaz*cosd(az2)^npa)/2 - ga...

I am trying to replace the following code: [rix riy riz] = ind2sub(sampbox,randi(myrandistr,prod(sampbox),SPtemp,1)); where sa...

10405 views

Xiong, It looks like Bjeorn basically did this... except he calculated the pol2cart transform in the last line starting with Da...

6271 views

Actually, while this is a nice process, is there any way to just modify idx without having to create the SubMx? I can see how t...

5124 views

Matt, this is essentially what "find" does right? the example I gave above was simplified too... I am doing a 3 dimension logi...

Here is the issue I am having. I have an mxn matrix, that is very large. I would like to use the find command but it is pretty...

Walter, sorry to bother you again, but could you please help clarify something for me? I must have messed up when pasting (abou...

5026 views

Walter, I'm having some trouble with the code. first off the matrix you use for A is actually the index matrix right? Also fo...

Walter, Thank you, I'll play with this sample code... this is pretty tricky and a nice use of ind2sub and back that I would nev...

Sorry for the confusion. The example of matrix idx should be (1,:)...(5,:) where each idx row is a vector of index values from ...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries