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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Respondida
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)...

casi 12 años hace | 0

Resuelto


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

casi 12 años hace

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

casi 12 años hace | 0

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

Resuelto


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

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


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]

casi 12 años hace

Resuelto


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

casi 12 años hace

Respondida
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); ...

casi 12 años hace | 0

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

casi 12 años hace | 0

| aceptada

Respondida
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); ...

casi 12 años hace | 1

Respondida
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);...

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Respondida
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 :

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 1

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

Respondida
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; ...

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

Respondida
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

alrededor de 12 años hace | 0

Cargar más