Respondida
write a three_max function
There are several issues with your code. It does not return an output. It overloads the max() function, which can lead to conf...

casi 7 años hace | 0

| aceptada

Respondida
Low Pass filter not working
You show a figure that essentially looks like the following (also attached): fs = 1000; t = 0:1/fs:10; x = sin(2*pi*10*t); X...

casi 7 años hace | 0

Respondida
regexprep does not exactly what I want
There's definitely a way to do it using regexprep, but I found this solution first, so hopefully it is sufficient. Charge =...

casi 7 años hace | 0

| aceptada

Respondida
Remove spikes from a matrix.
My version of nanmean only goes up to line 22 in R2019a, so I'm not sure what you have. Perhaps someone has written an overloade...

casi 7 años hace | 1

| aceptada

Respondida
Audio sounds similar in volume before and after filtration of the most energetic frequency band
This has been solved. The answer was poor speakers and human threshold of hearing stow frequencies (as per the comments above).

casi 7 años hace | 0

Respondida
identifying the continuous sweep's envelope
I've had success using *PaddedHilbert* on the file exchange in the past. <https://www.mathworks.com/matlabcentral/fileexchange/...

casi 7 años hace | 0

Respondida
calculating residual between two time domain signals
It's unclear what you're trying to achieve, but yes that how to calculate the residuals (the difference between the observed val...

casi 7 años hace | 1

| aceptada

Resuelto


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

casi 7 años hace

Resuelto


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

casi 7 años hace

Respondida
incorrect result of fft phase calculation
I made only a few changes to your code and got satisfactory results. Nfft = length(Yin); The zero padding was doing odd things ...

casi 7 años hace | 0

Respondida
Signal filtering, smoothing and delay
I created a butterworth filter using filterDesigner, with the following parameters: Bandpass, IIR - Butterworth, specify order: ...

casi 7 años hace | 0

| aceptada

Respondida
Find and count how many capital characters are in str, and then change them to lower cases USING LOOPS
s = 'This is my String with CapiTal LETTERS in it. Let''s change them to lowercase uSiNg LoOpS.' [caps,inds] = regexp(s,'...

casi 7 años hace | 0

Resuelto


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

casi 7 años hace

Respondida
Count how many ‘a’ are in str and eliminate those ‘a’
s = 'I have an apple'; [a,b] = regexp(s,'a','split'); numA = length(b); sentenceWithoutA = strjoin(a);

casi 7 años hace | 0

Resuelto


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

casi 7 años hace

Resuelto


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

casi 7 años hace

Resuelto


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

casi 7 años hace

Respondida
Extracting selected parts from text - regular expressions
This will remove a space followed by any numbers followed by a dot follow by another number. regexprep(myText,' [0-9]*.[0-9...

casi 7 años hace | 0

| aceptada

Resuelto


Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

casi 7 años hace

Resuelto


Numbers spiral diagonals (Part 1)
Inspired by Project Euler n°28 et 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right...

casi 7 años hace

Resuelto


Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

casi 7 años hace

Resuelto


Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

casi 7 años hace

Respondida
How can I use conditional operators to improve my code?
N = [1:n]; s = [N;N;factorial(N)]; fprintf('For N = %d, %d! = %d\n',s);

casi 7 años hace | 0

| aceptada

Resuelto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

casi 7 años hace

Resuelto


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

casi 7 años hace

Resuelto


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

casi 7 años hace

Resuelto


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

casi 7 años hace

Resuelto


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

casi 7 años hace

Resuelto


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

casi 7 años hace

Resuelto


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

casi 7 años hace

Cargar más