답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
angle-between-a-vector-and-the-positive-x-axis
Have a look at the help for atan2. HTH

대략 11년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 4

| 수락됨

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

대략 11년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
[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년 전 | 1

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

대략 11년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

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

11년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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...

거의 12년 전 | 0

답변 있음
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...

거의 12년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

더 보기