/ MatLab Gurus...?
i.e. plot f(x) on a graph where f(x)=exp(-ax^2)
uhhmm, apparently 'a' is a constant and f(x) uses 0< x <= 1
delta x is 0.01
also have to create a movie of it in operation but that's another mindf*ck...
If anyone cares to help a complete programming novice, it would be very much appreciated!
x = [0:0.01:1]
a = 1;
fx = exp(-a.* x.^2)
partial brainache relief!
A more general bit of advice would be that unless you're actually doing a lot of work with matrices (rather than arrays), then ditch the disastrous, slow, under-supported and expensive memory-hog that is Matlab, and install R instead. If you feel a great need to pay a license fee, at least go with IDL.
(Of course, if you are doing a lot of vector/matrix calculations, Matlab is actually pretty good).
Seconded. Matlab sucks.
Though, at the level OP is doing matlab I suspect https://www.gnu.org/software/octave/ will do. It's quite good.
"The Octave language is quite similar to Matlab so that most programs are easily portable."
R is sweet too.
If I was doing a lot of matrix/vector styles, I'd probably look at NumPy.
(Coming from an extensive former matlab user)
(+SciPy, awww, now I want to some numerical problem to solve!)
Matlab is great if it's the right tool for your job (i.e. not big, non matrix, number crunching).
Elsewhere on the site
Pete Whittaker has flashed the 32 pitch route Freerider 5.12d on El Capitan in Yosemite Valley over three days,... Read more
From a personal point of view, photographing the night sky is one of the most difficult, frustrating yet ultimately rewarding... Read more
The Grivel A&D Ascender & Descender is brand new for Autumn 2014 and incorporates a revolutionary and innovative patented... Read more
This survey is being conducted by the Outdoor Industries Association in order to find out more about how and why people... Read more
Nuts, wires, stoppers, chocks, wedges, whatever you want to call them, have been around for a long time. Initially made from... Read more