Community Profile

Pete sherer


86 total contributions since 2007

Contact

Contributions in
View by

Question


cumsum within a group
Hi, Is there a faster way to do a cumulative sum within a group? data looks like year val cumval data=[1 10 10; 1 10 ...

5 months ago | 2 Answers | 0

2

answers

Posted


cumsum within a group
Hi, data=[1 10 10; 1 10 20; 1 10 30; 1 10 40; 2 10 10; 2 15 25; 2 20 45; 3 5 5; 4 10 10]; As you see cumVal is sumsum within a ...

5 months ago | 439 views

Posted


bar plot instead of stem3
Hi all, I am plotting the 3d plot using stem3. Is there a way to show similar plot but showing the bar instead? I have 3 vect...

1 year ago | 492 views

Posted


The fastest way to read big csv file: GPU/ parallel processing?
Hi I have a large csv file (80 GB). Of course there is no way i can read all data into Matlab due to memory constrain. Data fi...

1 year ago | 1091 views

Posted


Plotting county data with different color scheme
Hi, Could you suggest the fast way to plot the county-resolution data? Say if we have population data by county, and I want to...

2 years ago | 1001 views

Posted


Simulate clustering discrete samples
When simulating discrete random number using poisson distribution over time scale, each occurrence occurs independently. Could ...

2 years ago | 829 views

Posted


Simulating number of occurrence Neg Binomial
Hi, I have a question regarding how to simulate the number of random occurrence for tornado outbreak. Say if I have mean annua...

3 years ago | 1128 views

Posted


Compiler Error: Missing mclmcrrt76.dll
Hi, I created an executable file from *.m and *.mat using mcc function. The process went smoothly. However when double clicki...

4 years ago | 2978 views

Responded


Re: Is there any way to vectorize/ speed up calculation?
Thanks Roger. I tried colon operator and it works amazingly fast since I don't need to find indx in every loop. tdata = sortro...

4 years ago | 2798 views

Responded


Re: Is there any way to vectorize/ speed up calculation?
nThres is actually 1-by-3 array. It's the length( uniqCol1) that is large, about 500k. Each block has about 4-5 sub-blocks, so ...

4 years ago | 2798 views

Posted


Is there any way to vectorize/ speed up calculation?
Hi, I have example data below. First column indicating block, second column indicating sub-block, and 3rd column shows values....

4 years ago | 2798 views

Responded


Re: How to get column index of non-zero values?
Well using find will not give me the linear index not the column index. Secondly the row order will change. Any thoughts/

4 years ago | 3554 views

Responded


Re: How to get column index of non-zero values?
Or how to get the column index of (data > 0) would do it.

4 years ago | 3554 views

Posted


How to get column index of non-zero values?
Hi, I have a matrix data = [0 39 0; 55 0 0; 34 0 0; 0 9 0; 0 0 45.5]; What I want is the column indx for each row that have val...

4 years ago | 3554 views

Answered
regexprep with multiple expression
Yes. Thanks

4 years ago | 0

Question


regexprep with multiple expression
Hi, Is there a way to consolidate these regexprep into one expression? regexprep(ttxt, ' parish',''); regexprep(ttxt, ' bor...

4 years ago | 2 Answers | 0

2

answers

Posted


Drawing n discrete numbers w/o replacement
Hi, Could you let me know how to draw a set of discrete numbers w/o replacement? For example I would like to draw 5 numbers fro...

4 years ago | 1283 views

Posted


Contributions from each variable: X+Y+Z> a0
Hi, Is there a way to compute the contribution from each random variable X,Y,Z from X+Y+Z>a0, where a0 is the threshold value? ...

4 years ago | 997 views

Posted


Reading 2003/2007 Access DB from Matlab
Hi, PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=testRead.mdb; ??? Invoke Error, Dispatch Exception: Source: ADODB.Connecti...

4 years ago | 1420 views

Posted


How to execute query in Access via matlab?
Hi, Is there a way to execute a saved query in Access via Matlab command? I can use matlab to read/write data to access, but ...

5 years ago | 1358 views

Posted


How to change Read only property
Hi, copyfile( 'Testing.xls', loop.xls, 'f'); xlswrite( 'loop.xls', tdata, 'Sheet1', 'A2'); I am using a copyfile command to cr...

5 years ago | 4717 views

Posted


writing to Access DB
Is there an example how I can write data into the Access database file (*.mdb)? Thanks,

6 years ago | 1050 views

Posted


NAD83 conversion to geo-coordinates
Hi, How can I convert Lat/Lon in NAD83 format to the regular geo-coordinate values that I can plot? Thank you very much for yo...

6 years ago | 1397 views

Posted


How to vectorize fprintf?
Hi, Is there a way I can vectorize fprintf? x = [1 2 3]'; y = [10 20 30]'; z = {'a','b','c'}; fid = fopen('test.csv','wt'); f...

6 years ago | 1756 views

Posted


Reading/Writing Access database
Hi, Is it possible to read/write data from *.accdb (i.e., access database) files? If yes, could you point me to the right funct...

6 years ago | 5310 views

Posted


How to rename fields in structure variable
tmp.X = 1; tmp.Y = 2; want to change it to tmp.Lon = 1; tmp.Lat = 2; Note that tmp is array (5,5) Thanks,

6 years ago | 4589 views

Responded


Re: How to convert Lat/Lon to US ZIP Code?
Does Matlab ave the zip code boundary file? Without the boundary, I can't locate coordinates.

6 years ago | 10846 views

Posted


How to convert Lat/Lon to US ZIP Code?
Hi, I have a set of Lat/Lon pairs about 8000 pairs. I would like to identify/convert them into the US zip code. Is there a wa...

6 years ago | 10846 views

Responded


Re: How to read binary file for certain row
well what I mean is to read as a block. So the for loop is rowindx = [1 2 3]; tmp1 = NaN( 3, 5); for ii = 1:length(rowindx) e...

6 years ago | 2748 views

Responded


Re: How to read binary file for certain row
Well a simpler question is that would it be possible to read it in row data block-by-block. For example, the rowindx for each lo...

6 years ago | 2748 views

Load more