Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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....

mehr als 13 Jahre vor | 1

Beantwortet
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...

mehr als 13 Jahre vor | 0

Beantwortet
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 ...

mehr als 13 Jahre vor | 0

Gelöst


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!

fast 14 Jahre vor

Beantwortet
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...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 14 Jahre vor | 0

Beantwortet
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...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 14 Jahre vor | 0

Beantwortet
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' ...

etwa 14 Jahre vor | 1

Beantwortet
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...

etwa 14 Jahre vor | 0

Beantwortet
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 ...

etwa 14 Jahre vor | 0

Beantwortet
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...

etwa 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
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-...

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

Beantwortet
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/...

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 2

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 14 Jahre vor | 0

Mehr laden