Beantwortet
Is there any difference between rand(n,1) and unifrnd(0, 1, n, 1)?
They both generate sample from uniform distribution, *unifrnd* offers a possibility to enter the parameters while with *rand* yo...

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
how to plot a 10*10 grid map and how to number the grid cells? (sample pic is attached here)
I have a model that i wrote already, try to compare it with Joseph's method. [X,Y]=meshgrid(1:11); figure; hold on; plot...

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
Help with Fourier transform fft
Generally fft is two sided , you just need to truncate it : F=f(1:floor(end/2));

mehr als 10 Jahre vor | 1

Beantwortet
Help with minimum of a matrix
As are you are concerned about the global mean, you truncate the Inf elements and compute the min: M(isinf(M))=[]; min...

mehr als 10 Jahre vor | 0

Beantwortet
axis changing when plotting points
One method to fix the issue is to place the axis command inside the loop, suppose the limits are : L=[xmin xmax ymin ym...

mehr als 10 Jahre vor | 0

Beantwortet
Random Variable with exponential distribution of Probablity Density Function
The beginning of the answer can be as the following : % first part alpha=2; % parameter N=400; % size...

mehr als 10 Jahre vor | 1

Beantwortet
Simple matlab code issue
The quantity (C')*B*inv(A)*(C).^1 is scalar, and B+C.^2 is not correct : B+(C*C').^2; is correct

mehr als 10 Jahre vor | 0

Beantwortet
How to plot trend lines of 2 FFT graphs which have very large data points?
One temporary solution is to downsample the two power spectra, this proposition is based on time-frequency uncertainty principle...

mehr als 10 Jahre vor | 0

Beantwortet
How to represent the value of X and Y Pixels in array of Two Dimensions using Matlab
The provided answer is correct, you only need some processing steps, the image contains white borders , you need to crop it usin...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
problem with for and function inside other function
From your description , the error occurs when you calculate the integral of pxcos1 from 1 to 1.4, that is the quad function, you...

mehr als 10 Jahre vor | 0

Beantwortet
how to plot ellipsoid in 3d not in the center
For surface representation, you can use meshgrid to generate the ellipsoid with parameterization : a=5; b=3; c=1; [u,v]=...

mehr als 10 Jahre vor | 1

Beantwortet
Finding Point of Increased Event Frequency
From the graph 3700 is approximately the point, from theoretical view point, you can search the inflection point using second d...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Quarter of an image.
Using vector function,the problem becomes simple, here is an example to select 1/4 of matrix : N=400; H=randn(N)...

mehr als 10 Jahre vor | 1

Beantwortet
How to perform Monte Carlo simulation for Chromosome modelling?
You need to provide the variables needed for this description, is it simple Monte Carlo method or you need other criteria such a...

mehr als 10 Jahre vor | 0

Beantwortet
Plotting the beamwidth from a matrix
Another way to compute the beamwidth is to plot the azimuth and Gain : Data=load('data_ABS_antenna_CASMA.mat'); X=Data...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Help with simple FFT problem
You have to change the sampling rate, try the following : fs=4000; t=0:1/fs:2-1/fs; VarName1=1.41.*sin(2.*pi.*1000.*...

mehr als 10 Jahre vor | 0

Beantwortet
Plotting the beamwidth from a matrix
Here is the proposed solution, i suggest that you use the polar coordinates as the following : Data=load('data_ABS_antenna_...

mehr als 10 Jahre vor | 1

Beantwortet
For standard eigenproblem EIG(A), A must be square
For a non square matrix, you need either to compute the covariance T*T' or you can adjust the dimensions , try the following pr...

mehr als 10 Jahre vor | 1

Beantwortet
RGB TO GRAY ERROR
This is numeric problem, no need for images processing tools, in fact you are computing a type of two dimensional exponential fu...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
What does the notation x[n|n+1] mean.
The notation X[n+1|n] means the equation that relates the state a discrete instants n+1 and n ( eventually X[n|n-1]), in probabi...

mehr als 10 Jahre vor | 1

Beantwortet
how to generate an abitrary length colored noise when the PSD is know !
You proceed using Inverse Fourier transform , here is how you can start , let us consider zero mean random variable of length 20...

mehr als 10 Jahre vor | 0

Beantwortet
Scatter3 and surf yields a bug?
To get uniform color, delete the light commands : colors = colormap('summer'); color = colors(end,:); surf([0 0; 1 1],[0...

mehr als 10 Jahre vor | 0

Beantwortet
How to extract the value pixel values from an image or masked image?
Accessing a pixel is similar to retrieving element from matrix, here are two examples : for gray scale image : X=imread(...

mehr als 10 Jahre vor | 0

Beantwortet
Probability Density Function using ksdensity is not normalized
The ksdensity produces a Probability density function, no need to divide by the length of the x vector : x=randn(200,1); ...

mehr als 10 Jahre vor | 0

Beantwortet
how can i make a music using matlab??
There are many files that you can load and study using frequency analysis, here is simple example : data=load('gong.mat');...

mehr als 10 Jahre vor | 0

Beantwortet
Interpolating a double array
There is an alternative to interpolation functions : % Given the vector r of 33x1 : r=randn(33,1); y=upsample(r,30); ...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
How can i increase the number of circles in a polar grid?
In new version , there might be an option for increasing the number, however i made manual example here, in order to use it, tr...

mehr als 10 Jahre vor | 0

Beantwortet
Conversion error while plotting
change the cell to vector : y=cell2mat(y);

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Error using chol Matrix must be positive definite.
this an interesting problem, Generally, the matrix C must contain some negative and positive eigenvalues ( eig(C)) according ...

mehr als 10 Jahre vor | 0

Beantwortet
convert binary image to RGB image
The technique you used failed because the function does not provide a visualization of three dimensional logical matrices, besid...

mehr als 10 Jahre vor | 1

Mehr laden