Beantwortet
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

fast 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

| akzeptiert

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

| akzeptiert

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

etwa 11 Jahre vor | 4

| akzeptiert

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

| akzeptiert

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

mehr als 11 Jahre vor | 2

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

Mehr laden