/ 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
A product review by James Turnbull. James Turnbull at Outside recently took the new Osprey Mutant 38 on a rigorous test in the... Read more
WINTERFEST 2014 at Outside in Hathersage 6th and 7th December 2014 Outside's ever popular Winterfest event is back... Read more
Nick Livesey discovered the mountains of Snowdonia over a decade ago and finally moved there a year and a half ago, quitting a... Read more
As a long-standing name in the UK rockshoe market, Scarpa have a loyal following and many much-loved models. As a fan... Read more
The British climbing scene is very exciting at the moment. It is quite clear that as a sport it is developing at a rapid rate and... Read more