Respondida
biterr Error on 3D Matrix
Maybe I am not looking hard enough. >> the inputs must be either a vector or a matrix with mxn dimensions Only thing I saw in ...

más de 3 años hace | 0

Respondida
How to generate two independent white noise
An easy way to think about the mean over a sample not being what you expected is to consider a fair coin having a head (H, give ...

más de 3 años hace | 0

Respondida
Why is my code running so slowly in the while loop?
>>> while currentcycle > 1 currentcycle is not changing within the while-loop. You need to modify the value of currentcycle ...

más de 3 años hace | 0

| aceptada

Respondida
Short time energy, st zero crossing etc.
See if this can help you with what you have already done. https://www.mathworks.com/matlabcentral/fileexchange/23571-short-time...

más de 3 años hace | 0

Pregunta


biterr Error on 3D Matrix
B = [1 2 3; 4 5 6; 7 8 9]; size(B) % ans = 3 3 biterr(B,B) % ans = 0 Why does biterr work here, but not below? A =...

más de 3 años hace | 2 respuestas | 0

2

respuestas

Respondida
Compare two text files from MATLAB Command Window using FC Windows 10 file comparison command
To handle spaces in filenames, I did the following: >> fn_baseline_str = 'A BC BASELINE.txt' >> fn_str = 'A BC.txt' ...

más de 3 años hace | 0

Pregunta


Compare two text files from MATLAB Command Window using FC Windows 10 file comparison command
Currently, I am using visdiff to compare two text files. I do not want the GUI popup, nor do I want to get the full visdiff outp...

más de 3 años hace | 2 respuestas | 0

2

respuestas

Respondida
There is an endless loop in the function "getCompleteIntervals".
I had a similar problem in MATLAB 2020a. I saw two single pre-allocated arrays defined before the parfor-loop. I made them doubl...

casi 4 años hace | 1

Pregunta


Plot only adjacent points that are close to each other
I got a good answer to my question: https://www.mathworks.com/matlabcentral/answers/543065-find-set-of-all-adjacent-points-that...

casi 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Find set of all adjacent points that are close to each other
I would like to find in Y[n] a set of adjacent points that are close to each other, but I don't get all the desired points. For ...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Respondida
List non-zero connected elements in a Matrix cluster given a starting bin
I took the brute force approach which appears to handle all the edge cases. I just mark one found bin at a time in recursive ca...

casi 4 años hace | 0

| aceptada

Pregunta


List non-zero connected elements in a Matrix cluster given a starting bin
I used MATLAB's histcounts2 to create a 10 row by 7 col matrix, H. I would like to create a set of non-zero bins that are connec...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

alrededor de 4 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

alrededor de 4 años hace

Resuelto


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

alrededor de 4 años hace

Resuelto


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

alrededor de 4 años hace

Resuelto


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

alrededor de 4 años hace

Resuelto


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

alrededor de 4 años hace

Resuelto


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

alrededor de 4 años hace

Resuelto


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

alrededor de 4 años hace

Resuelto


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

alrededor de 4 años hace

Resuelto


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

alrededor de 4 años hace

Resuelto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

alrededor de 4 años hace

Resuelto


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

alrededor de 4 años hace

Resuelto


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

alrededor de 4 años hace

Resuelto


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

alrededor de 4 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

alrededor de 4 años hace

Resuelto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

alrededor de 4 años hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

alrededor de 4 años hace

Resuelto


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

alrededor de 4 años hace

Cargar más