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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 0

| aceptada

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

alrededor de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

Resuelto


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!

casi 14 años hace

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

Respondida
How do i create a matrix of size 1 row and 1501 column, with values [1 -1 1 -1 1 -1.... etc
v = (-1).^(0:n); HTH

alrededor de 14 años hace | 2

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Cargar más