Answered
setting ode45 to solve at even timesteps
If you give it an array with the times for which you want the solution instead of just the start and stop time in the TSPAN inpu...

13 years ago | 0

Answered
Is my calculation too complex for Matlab?
Your qs are all arguments to sin and cos (if in see it right), since they are periodic your equations seem bound to have an infi...

13 years ago | 0

Answered
how can i solve the error of reading permission during loading of number of images from a folder
Looks to me as if you're trying to open the directory itself ('./') as if it was an image. The return from dir called on a direc...

13 years ago | 0

| accepted

Answered
how do I get the STFT inverse
Why not try the generic first step: LOOK AT THE FILE EXCHANGE? I found: <http://www.mathworks.com/matlabcentral/fileexchan...

13 years ago | 0

Answered
Is it possible to set watchdogs (memory, exec time) in MATLAB?
If you look at the documentation for the ode-solvers, you find that for those you can send in an events-function in the options....

13 years ago | 1

Answered
Tilt a 2D image within a 3D space?
This file exchange submission should let you wrap an image to any flat surface: <http://www.mathworks.se/matlabcentral/fileexch...

13 years ago | 0

Answered
MATLAB code for right handed circular polarization
That it is possible to rewrite A*cos(t) + A*sin(t) to A*(cos(t)+sin(t)) clearly shows that that is a scalar quantity - such has ...

13 years ago | 0

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

14 years ago

Answered
How to compute entropy more efficiently?
On my version of matlab I get a big reduction in run-time by doing: h1 = p1*log(p1.'); or h1 = p1.'*log(p1); de...

14 years ago | 0

| accepted

Answered
How to solve multiple ODEs to fit empirical observations by optimizing multiple constants?
If the ODEs are that simple it should just be to integrate them analytically, then you'd simply end up with a well overdetermine...

14 years ago | 0

Answered
How can I avoid nested for loops when varying multiple array elements?
You should have a look at: fminsearch that is the first optimization function to use for problems like this. That way yo...

14 years ago | 0

| accepted

Answered
Avoiding inverse of a matrix
Well if it is just one and the same matrix you're using for every case it must be better to "invert" it once - then the equation...

14 years ago | 0

Answered
Counting the unique values
Pat, I strongly suggest you change the encoding of your data! Make your variable an integer array with for example 0 for 'd' ...

14 years ago | 1

Answered
How can i find max & min of this 2 variables function?
Have a look at the chebfun project: <http://www.mathworks.se/matlabcentral/fileexchange/23972-chebfun>. There are brilliant func...

14 years ago | 0

Answered
Positivity constraint and deconvolving data with negative values
Well, why not just try to add slightly different offsets to your data and see if the deconvolution is invariant to that. And if ...

14 years ago | 0

Answered
How can I color code lines in graphs depending on quality of data?
You might benefit from the following file exchange submissions: <http://www.mathworks.se/matlabcentral/fileexchange/14677-cli...

14 years ago | 0

Answered
I seem to have loads of free RAM even though my script is taking 10 minutes to run
Well, then it seems as if memory is not the limiting factor for the performance of your algorithm, maybe CPU-time/cycles are wha...

14 years ago | 2

| accepted

Answered
Plot trajectory in 2D
I don't think I've seen exactly that type of plot. But take a look at the documentation to "quiver" that should be possible to u...

14 years ago | 1

| accepted

Answered
Matrix elaboration
Msub = M(1:5,1:6); But there are "getting started" documentation to get you up and running in no time, also at the command-...

14 years ago | 0

| accepted

Answered
Value Interpolation.
V_interesting = V_with0(1:8:end); HTH

14 years ago | 0

Answered
How to do the Anderson Darling Goodness-of-fit test in Matlab? (I am ideally looking for a script)
There are a number of submissions on the file exchange that seems to be related to this request: <http://www.mathworks.co.uk/...

14 years ago | 0

Answered
How to plot a trapezoidal 2D section in matlab?
Try: pcolor HTH

14 years ago | 0

Answered
Saving matlab code / good programming practice
Write functions that does the job. Then one script that loads the data, calls the functions and saves the results. You can use t...

14 years ago | 0

Answered
Image analysis does not work
In addition do Daniel's answer, I'd like to suggest you ask your colleagues to run: which nrm -all then send you the (po...

14 years ago | 2

Answered
Image reconstruction
My quick guess is that you have too sparse data. The resolution of the inverse radon transform depends on the number of projecti...

14 years ago | 0

Answered
Need code for Median Filtering on Color images
Either do the median filter on the individual R,G and B planes. Or trasform the RGB image to some other colour format, for examp...

14 years ago | 0

| accepted

Answered
Unconstraint optimization: providing good intial guess does not lead to lower calculation times
Maybe it is so that your error-function is "nice"? With nice I mean that is doesn't have a large number of valleys and gorges (i...

14 years ago | 0

Answered
solve non linear equation
I'd change the definition of your function Black_Imp_Vol to: function F = Black_Imp_Vol(x,r,t,P,K,C) F = exp(-r*t)*(P*no...

14 years ago | 0

| accepted

Answered
Conversion of video to images
You could give aviread a try. Otherwise look in the file exchange, there are tools for dealing with files in many video-formats ...

14 years ago | 0

Load more