Community Profile

photo

Andrew Stevens


US Geological Survey

77 total contributions since 2007

Professional Interests: oceanography, sediment transport, benthic habitat mapping

Contact

Contributions in
View by

Submitted


demViewer
Efficient viewing and exploration of large Digital Elevation Models

1 year ago | 9 downloads |

Thumbnail

Submitted


arcgridwrite
Write gridded data set in Arc ASCII Grid Format

1 year ago | 32 downloads |

Thumbnail

Submitted


read_bag
Read data from a bathymetric attributed grid (BAG) file

1 year ago | 1 downloads |

Thumbnail

Responded


Re: write to binary file at current position
DPB, I believe when I opened the file with the '+a' permission, FWRITE, appends what you are writing to the end of the file, no...

2 years ago | 1653 views

Posted


write to binary file at current position
Hi All, I am working with a binary file and would like to edit its contents. As I decode (read) the file, I would like to repl...

2 years ago | 1653 views

Responded


Re: Process multiple csv files with one command
Dan This can be achieved with a combination of the DIR command and a loop. For instance: dname='C:\matlab_work\'; files=dir([...

3 years ago | 4840 views

Posted


rgb background, transparent surface
Hi, I want to export a figure I made that uses an RGB background image with a transparent surface overlain. The figure looks g...

3 years ago | 1092 views

Responded


Re: Griding data
you might find this function useful: http://www.mathworks.com/matlabcentral/fileexchange/23479-bin2mat It is not optimized for...

4 years ago | 2190 views

Responded


Re: Plotting latitude and longitude
Helen, Output from the shaperead command is a structure array. If you type, coords, what do you see? If lat and long are inde...

5 years ago | 4833 views

Responded


Re: plot phase on mmap
Miguel, Not sure I totally understand your problem, but you could try the HSV colormap that is cyclical. I use it when plotting ...

5 years ago | 2282 views

Responded


Re: Multi-Line XtickLabels
Hi Steve, I was trying to create multi-line tick labels and came across this thread. For instance, say I want to add a speciali...

5 years ago | 23402 views

Responded


Re: Must I change the geoid using UTM projection?
Javier, A quick search suggests that Google Earth uses WGS84 for their imagery, so yes you would want to use the WGS84 ellipsoid...

5 years ago | 3311 views

Responded


Re: Legend With FaceAlpha / 50% Opacity ?
Brian, There is no facealpha property for a legend, so my workaround is basically making the axes if the legend invisible and p...

5 years ago | 7476 views

Responded


Re: Legend With FaceAlpha / 50% Opacity ?
Brian, I couldn't find a straight-forward way to do it, but here is a workaround: xi=linspace(0,1,20); yi=xi; figure plot(xi,...

5 years ago | 7476 views

Responded


Re: run length freqeuncy
Justine, I remember a file on the FEX called 'getchunks' that did some if not all of the things you are asking. Check it out he...

5 years ago | 995 views

Responded


Re: align subplots...magical axes property?
Thanks dpb, Your advice helped and this is what I came up with: %get the positons, convert cell to mat pos=get(ax,'position');...

5 years ago | 8105 views

Posted


align subplots...magical axes property?
Hi, I would like to align a group of subplots where there are various legends and colorbars that seem to be shifting the actual...

5 years ago | 8105 views

Responded


Re: default font
This is a bit interesting (maybe?)...As a hack (while I was waiting to hear from you all), I tried this to change the font of al...

6 years ago | 1901 views

Posted


default font
Hi, get(0,'default') but there does not seem to be a 'defaultfontname'. I also tried creating the figure and using: h=find...

6 years ago | 1901 views

Responded


Re: How hard is it to plot a few simple 2D lines with different colors?
Rob, Check out CMAPLINE available on the FEX: http://www.mathworks.com/matlabcentral/fileexchange/21102-cmapline -Andrew

6 years ago | 1766 views

Responded


Re: Draw an one inch horizontal line?
This weeks file exchange Pick of the Week might be relevant here: http://blogs.mathworks.com/pick/2010/03/05/uisetscreenpixelsp...

7 years ago | 5416 views

Responded


Re: Max values of x over sliding values of t
I suggest you check out SLIDEFUN on the FEX. -Andrew

7 years ago | 1709 views

Responded


Re: contourf with squares not interpolated contours?
help: surf pcolor imagesc should get you started. -Andrew

7 years ago | 2365 views

Responded


Re: Saving filled contour plot problem
Will, I would try using a different renderer. For example, if you don't have any transparency in your figure, I would use the '...

7 years ago | 1211 views

Responded


Re: finding data
Jon, Take a look at: ISMEMBER -Andrew

7 years ago | 2054 views

Responded


Re: scatter data on a map
If your image is already RGB, then the figure's colormap should not affect it's display. You may just want to adjust the 'clim'...

7 years ago | 4359 views

Responded


Re: scatter data on a map
Travis, One option is to convert the image to RGB. I do this routinely using REAL2RGB, available on the file exchange. Once y...

7 years ago | 4359 views

Posted


patch on top of transparent surface
Hi, I am trying to plot an opaque patch on top of a transparent surface and am having some problems. See the following snippet:...

7 years ago | 2202 views

Posted


Replotting Graphs
Ashleigh, When you plot the data originally, use a handle: h=plot(x,y); Then when the user changes x or y in your gui: %in y...

7 years ago | 2363 views

Posted


replace values in a cell with nan
Jan, Of course you and Matt are right about the execution speed. For my application, I am not worried about speed. In many c...

7 years ago | 21637 views

Load more