Answered
Using normpdf() and a for Loop to Generate Multiple Gaussian Random Variable Arrays
helpwin randn HTH, Coulda been more verbose, but here it's monday morning 0800

11 years ago | 0

Answered
Matlab command history question
To make things like such searches possible I have this in my startup.m-file: filename = fullfile('/home','bjorn','matlabrun...

11 years ago | 0

Answered
Pair-wise operation on two vectors that avoids double calculation
This made me curious about how the JIT-compiler performs. This function shouldn't do too many extra operations: function Ad...

11 years ago | 0

Answered
Gradient of a function of two variables?
If you want a symbolic-like gradient you'll have to do it with symbolic variables: syms x y F = x^2 + 2*x*y − x*y^2 ...

11 years ago | 1

Answered
angle-between-a-vector-and-the-positive-x-axis
Have a look at the help for atan2. HTH

11 years ago | 0

Answered
Faster method of creating list of looped row vectors?
kres=1; kz=0; K=[]; This is the way I'd go about it: x = -3:kres:3; y = -3:kres:3; z = 0; [x,y,z] = meshgrid(x,...

11 years ago | 0

| accepted

Answered
How to solve overdetermined vector equation?
Use pen and paper, draw the standard little sketch for spherical-and-Cartesian coordinates... Then you get: a2 = acos(v3...

11 years ago | 0

Answered
How to fit multiple gaussians over a 3-D histogram
I think this should get the job done: [nHist,xHist] = hist(Data,extra,parameters); twoGausianFCN = @(pars,x) pars(1)*exp...

11 years ago | 1

| accepted

Answered
Exact number of digits output in num2str
Well you get part of the way with %4.2f, as in num2str(pi,'%4.2f') that breaks down for large numbers alike pi*1e12, but...

11 years ago | 4

| accepted

Answered
how can i take the anti log of my filtered(denoised) image...??
anti-log? Ought to be: D = exp(d); HTH

11 years ago | 0

Answered
how to realize 'contour' plotting with different spacings?
Instead of calling the function with 100 to get 100 iso-spaced contourlines you should calculate the potential-levels of interes...

11 years ago | 0

| accepted

Answered
[DEPRECATED] What frustrates you about MATLAB?
That a call to contour where one specifies a single colour for the contour-lines still modifies the clims of the figure is frust...

11 years ago | 1

Answered
How do I find what row and column a specific element is in?
Seems you're asking for sub2ind HTH

11 years ago | 0

Answered
Solving a non-linear second order ODE with Matlab
Another pointer... You have in fact not separated your DE correctly. You get y1' directly from your DE if you change dp/dr wi...

11 years ago | 0

Answered
pls help me with matlab code for STFT of audio signal in wav format and to plot pitch contour
Have a look at the help for: spectrogram That function should give you the stft with a load of options about windowing a...

11 years ago | 0

Answered
bessel function at the matlb
Try the matlab help functions: lookfor bessel and then look at the help for the relevant function listed: help ...

11 years ago | 0

Answered
How to Reconstruct 3D model of an object from Biplanar X-rays of it using Direct Linear Transformation in MATLAB? Any link available?
In principle this cannot be done - the reason is (if I interpret the bi in biplanar as meaning that you have 2 X-ray images of t...

11 years ago | 0

| accepted

Answered
how to add color pixels to a grayimage?
Exactly how you need to start off depends on your current image format, but I'll start with the assumption that it is an N x M d...

11 years ago | 0

Answered
How do I solve min ||y - A(x)||2 efficiently when A(x) is function (fourier ish) and x is large?
1, start rewriting your function A without calls to the fft-family functions - simply replace them with multiplications with the...

11 years ago | 2

| accepted

Answered
How to enhance the historical text documents?
Seems like you have fairly good contrast already. I got some improvement with this: im = imread('DSC03961.JPG'); hsv =...

11 years ago | 2

Answered
Computing pseudo-inverse and norms using pinv
Well I have no idea why you should use the equation x=pinv(m)*b to get the pseudoinverse and the norms (whatever norms ...

11 years ago | 0

Answered
How to extract Color Histogram ?
These file exchange contributions seems to produce 3-D colour histograms: <http://se.mathworks.com/matlabcentral/fileexchange...

11 years ago | 0

Answered
converte UNIX time to Human readable format.
Take a look at datestr (or some of the other functions in the date-family): datestr(matlab_time,'yyyymmddTHH:MM:SS') or ...

11 years ago | 1

| accepted

Answered
how to pass an argument to python?
Why not use sprintf? exce_str = sprintf('python %s if the first argument is a string %02d with a second integer ergument',s...

11 years ago | 0

Answered
How to do 2D extrapolation
My guess is that the "best" way to go about this is to use your data to estimate all coefficients in the wave-equation in cylind...

11 years ago | 0

Answered
using ode45 to solve a non-linear system of coupled ODE's
# in your definition of W you're mixing doubles and function handles. # write your ode-equations as one m-function - it become...

11 years ago | 0

| accepted

Answered
diffusion model for 2D images
If I get this right... Linear diffusion you can calculate by straightforward convolution with a Gaussian kernel, and that ope...

12 years ago | 1

Answered
how to find contour inflection points?
Inflection points ought to be rather simple to calculate (function below should get the job done), but the actual contour-lines ...

12 years ago | 0

| accepted

Answered
Radon transform in matlab
Why would you want to repeat the process in the first place? If you have data for every 0.1 degree (according to your calculatio...

12 years ago | 0

Load more