답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

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

거의 12년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

문제를 풀었습니다


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년 전

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

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

대략 12년 전 | 0

답변 있음
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년 전 | 0

더 보기