回答済み
how to take modulus?
abs(a)^2 or norm(a)

14年以上 前 | 0

| 採用済み

回答済み
"Levelling" out a signal with moving average
Maybe you want to try |detrend|? doc detrend

14年以上 前 | 0

回答済み
Why is vertcat slowing things down?
My 2 cents:: 1. You may want to preallocate the memory. The in each iteration, you just put the new data into corresponding s...

14年以上 前 | 1

| 採用済み

回答済み
show same text on 2 lines without getting an error
Put ... at the end of the first line, something like a = 3 * ... 4;

14年以上 前 | 0

| 採用済み

回答済み
Delay using FFT
I don't see anything obviously wrong in your code. I think the difference in the amplitude may just due to the fact that after t...

14年以上 前 | 0

| 採用済み

回答済み
plot the following functions using axes that will produce a stright line
I don't quite understand what you mean by using axes. But if you use loglog(x,y) for the first function and semilo...

14年以上 前 | 0

回答済み
Truncating Decimal Places
round(pi)

14年以上 前 | 2

解決済み


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

14年以上 前

解決済み


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

14年以上 前

解決済み


surface of a spherical planet
you just discovered its circumference, that is the input.

14年以上 前

解決済み


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

14年以上 前

解決済み


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

14年以上 前

解決済み


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

14年以上 前

解決済み


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

14年以上 前

解決済み


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

14年以上 前

回答済み
matlab coding
OK, the question becomes more concrete now. Since you have A0 and A1, then you can do A = [A0 A1]; B = [A0*A0' A1*A1']; ...

14年以上 前 | 0

| 採用済み

回答済み
Plot of 3D Matrix
You can |mesh| or |surf| doc mesh doc surf

14年以上 前 | 0

回答済み
Numerically solve for x in a polynomial equation
Write the polynomial as a*x^3+b*x^2+c*x+d-y Then you can use |fzero| to solve x. doc fzero

14年以上 前 | 1

| 採用済み

回答済み
How do i intergrate a signal (sinewave)?
|int| is the symbolic toolbox integration. There are many numerical integration methods in MATLAB, just pick one of them. d...

14年以上 前 | 0

回答済み
frequency ulation
You can do an FFT to the output of the mixer to find the beat frequency. You can then convert beat frequency to the range using ...

14年以上 前 | 0

| 採用済み

回答済み
Change Pixel intensity value
Say your image is |x|, x(x<0) = 0;

14年以上 前 | 0

| 採用済み

回答済み
signal processing
You can us |xcorr| to do both auto and cross correlation, e.g., xcorr(x,x) xcorr(x,y) doc xcorr Auto correlation ...

14年以上 前 | 0

解決済み


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

14年以上 前

解決済み


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

14年以上 前

解決済み


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

14年以上 前

解決済み


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

14年以上 前

解決済み


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

14年以上 前

解決済み


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

14年以上 前

回答済み
area under curve for just 1 period
There are many integration methods in MATLAB, just pick one of them. doc quad doc quadl doc integral I'll use |qu...

14年以上 前 | 0

回答済み
Algorithm used in [d,l] = bwdist(I)
You can look at the references listed in Algorithm section of the doc doc bwdist

14年以上 前 | 0

さらに読み込む