Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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 ...

presque 12 ans il y a | 0

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

presque 12 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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)...

environ 12 ans il y a | 0

A résolu


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

environ 12 ans il y a

Réponse apportée
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 ...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

A résolu


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

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


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]

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

Réponse apportée
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); ...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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); ...

environ 12 ans il y a | 1

Réponse apportée
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);...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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 :

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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; ...

environ 12 ans il y a | 0

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

environ 12 ans il y a | 0

Réponse apportée
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

environ 12 ans il y a | 0

Charger plus