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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

Gelöst


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

fast 12 Jahre vor

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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]

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

Beantwortet
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

etwa 12 Jahre vor | 0

Mehr laden