Answered
Trying to compute mahalanobis Distance without using the in built function
Lora, The build in function is in square unite , but here is an example on how to write a function : x=randn(4,100); R=co...

12 years ago | 0

Answered
How to create a symmetric random matrix?
the random matrix is generated using the following : N=500; M=rand(N); M=0.5*(M+M'); L=100; % magnitude for n=1:N ...

12 years ago | 0

Answered
Checking if a matrix is right dimensions.
Try if length(a{1})~=length(b{1}) error(' Vectors must have same length'); end

12 years ago | 1

| accepted

Answered
Why do we convert grayscale to binary image in image processing
hi, This transformation is useful in detecting blobs and reduces the computational complexity, however many other studies per...

12 years ago | 0

Answered
How to get the power spectral density from a Spectrogram in a given frequency range?
This problem is simple in terms of matrix manipulation, all what you need is the index corresponding to the desired range, let u...

12 years ago | 0

Answered
how i can plot two 3 D graph in one 3D graph?
hi, as you described you should use : n1=length(S); n2=length(Te); n3=length(Se); n=min([n1 n2 n3]); plot3(S(1:n)...

12 years ago | 0

Solved


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

12 years ago

Answered
How to publish figures to pdf so they are not on new pages?
A secondary solution is to register the m-file as word document, then you can manipulate the spacing problem, next you can save ...

12 years ago | 0

Answered
Frequency Selective Channel Coefficients in MATLAB
here is a start : Fs=800; fc=300; % Hz Ts=1/Fs; L=400; t=0:Ts:(L-1)*Ts; d=4; % four signals per example, tau i...

12 years ago | 0

| accepted

Answered
Compute FFT consecutively in Matlab
hi, First remark is the name of the variable "filter" is built-in function, this will lead to ambiguity, the other problem is y...

12 years ago | 0

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

12 years ago

Solved


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

12 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

12 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

12 years ago

Answered
How can i get the fibonacci sequence ?
hi, its easy to implement such function : function y=fibo(x) y(1)=1; y(2)=1; for n=3:x y(n)=y(n-1)+y(n-2); ...

12 years ago | 0

Answered
Line Integral over a vector field
hi, i think this is similar to the wave vector k, like Roger expressed implicitly, the vector is orthogonal to the wave front w...

12 years ago | 0

| accepted

Answered
How can I draw a circle in matlab using parametric ecuations or the circle ecuation?
hi, correct the word 'ecuations' for future searching. Parametric method is the easiest one : t=0:0.1:2*pi; x=cos(t); ...

12 years ago | 1

Answered
how to take union of images?
union is not clear yet, but try this way : a Sample : X=imread('circuit.tif'); ROI=X(1:100,1:100); F1=rot90(ROI,1);...

12 years ago | 1

| accepted

Answered
How to Compress image using Run Length coding and Huffman coding.
take a look at this page, it contains some answers : <http://stackoverflow.com/questions/11245805/create-image-from-huffman-c...

12 years ago | 0

Answered
Why pca doesn't work on matlabR2013b?
hi, i am not aware about the error, but technically this alternative multiscale pca needs some details , let us take the examp...

12 years ago | 0

Answered
How can i remove the background noise of my signal?
hi, One of the ways to handle this problem is to treat the signal in frequency domain, after applying the Fourier transform try...

12 years ago | 0

Answered
please see this code and tel me where is the problem beacause i don't find it
The program is functioning well , here is the result :

12 years ago | 0

| accepted

Answered
How to plot density of binary data
Ryan, as you need an alternative to two dimensional graphic like @image analyst proposed, you can use bar3 command, here is a...

12 years ago | 0

Answered
Integration in 2D (area) using the Monte Carlo method
Ganesh, In this second answer to the problem, i wrote a Monte Carlo test for this specific geometry , try to compute the surf...

12 years ago | 1

Answered
FFT: why signal frequency depends on sampling rate?
FFT is correct as long as the Sampling rate is twice bigger than the maximum frequency of the signal, in the other hand resoluti...

12 years ago | 0

Answered
it is being difficult plotting the graph for Capacitance vs Distance D..please provide me a suitable solution to plot the graph
you have to measure each time the capacitance with varying d, there is peak at d=0.1, is this reasonable ? : %USING THE MET...

12 years ago | 0

Answered
how i can plott fmcw tx and rx and beat frequency in matlab in triangular modulation by sinwave varried frequency please help me
try this, as explained in the documentation : hw = phased.FMCWWaveform('SweepBandwidth',1e5,... 'OutputFormat','Sw...

12 years ago | 0

| accepted

Answered
Concatenating Matrices with different columns
Linden, One of the ways is to use cells, here is an example, A=rand(2,3); B=rand(2,5); C=cell(2,1); C{1,1}=A; ...

12 years ago | 0

Answered
how to input in matlab
you can use input instead of fscanf, and enter scalar, vector or matrix : a=input(' Player 1: ');

12 years ago | 0

Answered
One equation, two unknowns. How do I create a table of possible solutions?
you have to define the support of the x,y , and you can infinite solutions

12 years ago | 0

Load more