Rank: 36 based on 1506 downloads (last 30 days) and 20 files submitted
photo

Ameya Deoras

E-mail
Company/University
The MathWorks

Personal Profile:

 

Watch this Author's files

 

Files Posted by Ameya Deoras View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Oct 2014 Screenshot Natural Gas Storage Valuation Demos and files from the webinar Author: Ameya Deoras energy trading, energy risk, commodities, energy, pricing, valuation 64 0
03 Oct 2014 Screenshot Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras heat map, color map, heatmap, r2014b graphics ready, visualization 213 27
  • 4.90476
4.9 | 23 ratings
17 Dec 2013 Screenshot MATLAB for R Users in Computational Finance Learn how to use MATLAB and R together to tackle your computational needs Author: Ameya Deoras r, rstudio, time series, finance, monte carlo, simulation 73 0
06 Dec 2013 Screenshot Natural Gas Storage Optimization & Intrinsic Valuation Calculate optimal injection/withdrawal schedules for gas storage facility Author: Ameya Deoras energy trading 60 0
  • 4.5
4.5 | 2 ratings
12 Sep 2012 Screenshot Real-Time Stock Viewer Plot and analyze live market data from Bloomberg or Yahoo. Author: Ameya Deoras finance, modeling, analysis, bloomberg, yahoo, datafeed 112 3
  • 4.25
4.2 | 8 ratings
Comments and Ratings by Ameya Deoras View all
Updated File Comments Rating
03 Oct 2014 Intelligent Dynamic Date Ticks Create plots with date-friendly data cursors and smart date ticks that scale with zooming & panning. Author: Ameya Deoras

MATLAB R2014b has built-in rotated date tick labels, as well as a datetime data type for dates. It is quite a substantial update. Check it out!

http://www.mathworks.com/products/matlab/whatsnew.html

10 Jul 2014 Table Breakpoint Optimization A set of tools for finding the best way to reduce the size of a table. Author: Tucker McClure

Excellent! Works great for approximating a curve with piecewise linear functions

05 May 2014 Midi Tools This code allows you to read and write midi files. Author: Christine

For those running into problems with java, you can also dynamically add the JAR to MATLAB's java path by executing the following. This is less of an effort than changing classpath.txt

javaaddpath('C:\MidiLibrary\KaraokeMidiJava.jar')

where C:\MidiLibrary in this example is where the JAR is located.

15 Feb 2014 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras

Karin, thanks for catching that oversight. Jonathan, technically "iscellstr" is correct but since the text function allows empty numeric values as the string, I will change it to iscell.

The changes will be in today's update. Thanks!

12 Dec 2013 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras

Hi everyone. Thanks for the comments/feedback. I have updated the function with fixes and new features:
* It now correctly handles the labels for small matrices with labels.
* There are two options minColorLevel and maxColorLevel that allow you to specify how the data range maps to the color range. This is useful when comparing heatmaps and ensuring the same color-data mapping between heatmaps
* There is now a nanColor option that allows you to specify a special color for missing data elements.

Comments and Ratings on Ameya Deoras' Files View all
Updated File Comment by Comments Rating
04 Nov 2014 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras Alexander

There's also a bug in @getGraphicsObjectsPositions. If there's only one column in a heatmap (i.e. one column label), then "extents" is not a cell array. So you need to add the following check in two corresponding places where it is being used as a cell array:

if iscell(extents)
extents = vertcat(extents{:}); % Collect heights in one matrix
end

03 Nov 2014 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras Alexander

And another small issue: you should not rely on the fact that axes are the current axes. Specifically, all the calls to @colorbar, such as the one below, should specify axes through 'peer' property:

c = colorbar(p.Colorbar{:});
% should be
c = colorbar(p.Colorbar{:}, 'peer', p.hAxes);
% etc

03 Nov 2014 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras Alexander

To clarify, I made the following changes:

% in parseInputs():
p.addParamValue('XTick','NOT_SET');
p.addParamValue('YTick','NOT_SET');

% in setAxesTickLabels():
if ~isequal(p.YTick, 'NOT_SET')
ytick = p.YTick;
else
ytick = get(p.hAxes, 'YTick');
end
% and the same for XTick

Also, adjustAxesToAccommodateTickLabels() throws an exception when you pass empty hXText to it (that happens if you set 'XTick' to []). So I had to add the following to the beginning of this function:

if isempty(hXText)
return;
end

03 Nov 2014 Customizable Heat Maps Visualize data as a heatmap with many customizable options. Author: Ameya Deoras Alexander

Great utility, thanks!

One thing it still does not allow you to do, is set custom ticks on x/y axis. If there are too many ticks, you cannot use 'ShowAllTicks' option, and the ticks Matlab chooses by default may not be the ones you actually want. Essentially I had to modify the function to add two optional key-value parameters: 'XTick' and 'YTick' (the change is trivial, but would be nice to see it in the official version)

And another minor thing: when using it to plot correlations, you generally want your axes to be square, so I always end up adding the following line after using @heatmap:
set(axh, 'DataAspectRatio', [1 1 1]);
Would be nice if @heatmap accepted a flag and did it automatically if requested

16 Oct 2014 clickableLegend A legend with clickable strings that let you hide and show objects in a plot. Author: Ameya Deoras Stephen Goldrick

Contact us