Giter Site home page Giter Site logo

sg-s / srinivas.gs_mtools Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 6.0 2.99 MB

A collection of small functions and MATLAB tools, some that I have written.

Home Page: https://github.com/sg-s/srinivas.gs_mtools#mtools-by-srinivasgs

MATLAB 92.87% C 5.71% C++ 1.21% M 0.02% Objective-C 0.20%
matlab plots neuroscience cache

srinivas.gs_mtools's People

Contributors

sg-s avatar alec-hoyland avatar

Stargazers

 avatar  avatar sjk avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

srinivas.gs_mtools's Issues

Bug in PrettyFig

with EqualiseY=1, PrettyFig tries to equalise all the axes, even when they have very different types of data. For example, if two plots have line series, and two other plots have colormaps, PrettyFig should only equalise the line series.

readPref is not robust

the called func readPref.m is not robust. It should not expect a prefs file to exist in the same location as the main function; further if it can't find a prefs file it should create an empty or a default set of parameters.

Write sem

to compute the standard error of the mean for a matrix

Improvement to Manipulate

Manipulate should save and load mulitple states, corresponding to different sets of parameters.

To do this, p is now a structure array, and each element corresponds to a new state. The Name of the state is stored in p.Name

Improvements to Manipulate.m

  1. show function name being manipulated in the title bar
  2. link the two windows so that closing one closes the other (as in Kontroller)
  3. warning when model evaluation takes too long
  4. package XJW's model neuron as an example
  5. branch off in its own repo

Internally cache all functions

Now that we have cache.m running, we can internally cache all functions, so that they will refuse to do any computations till absolutely required.

update to fitmodel2data

it should be able to handle fitting to multiple data sets at once... simple extend data to be a structure.

improvements to mean2

when mean2 is called with a matrix, and there are NaNs scattered in the matrix, mean2 should intelligently average so that NaNs are ignored.

Improve rsquare.m

it captures the coefficeint of determination, but we also want to know is vector A and B are exactly alike. when we fit lines to get the r^2, also get the slope and report it.

improvement to `cache.m`

cache should also store a last-accessed time. so that we can prune the cached data intelligently

make this improvement to makePDF:

instead of using the normal tex output from matlab, modify it so that:

\hspace*{-1in}
\includegraphics [width=\paperwidth]{paper_01.pdf}

this makes the figures bigger

DesignFig needs some more work

  1. the code generation is a bit off. add a clf; a hold on, and output the axes handles to something usable.
  2. add a delete plot funciton.

Improvements to DesignFig

it should generate code like this:

fig_handle=figure('Units','pixels','outerposition',[100 143 1241 657],'Color','w','PaperUnits','points','PaperSize',[1241 657],'Toolbar','none','Menubar','none');

which involves some painful escaping and evaling

Improvement to Manipulate.m

should support custom upper and lower bounds of parameters defined by user. The way to do this is to make the parameter strucutre p an array, and the second element specifies the minimum, and the third specifies the maximum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.