/ 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
At a bar in Llanberis an old man chimed in And I thought he was out of his head Being a young man I just laughed it off When... Read more
On Saturday 13th December Greg Boswell and Guy Robertson kicked off their Scottish winter season early by making the... Read more
Perhaps the perfect Xmas gift for the climber in your life... Wild Country's Crack School has two of the worlds best crack... Read more
Rock shoes stink – let’s face it. Boot Bananas are the perfect way to fight the funk and keep them fresh. They help... Read more
F ounded in 1993, Mountain Hardwear are a pretty young mountaineering clothing and equipment manufacturer but are also one of... Read more