Resuelto


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

alrededor de 6 años hace

Resuelto


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

alrededor de 6 años hace

Resuelto


Return area of square
Side of square=input=a Area=output=b

alrededor de 6 años hace

Resuelto


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

alrededor de 6 años hace

Resuelto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

alrededor de 6 años hace

Resuelto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

alrededor de 6 años hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

alrededor de 6 años hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

alrededor de 6 años hace

Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

alrededor de 6 años hace

Resuelto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

alrededor de 6 años hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

alrededor de 6 años hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

alrededor de 6 años hace

Resuelto


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

alrededor de 6 años hace

Resuelto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

alrededor de 6 años hace

Respondida
Vector Generation Through Loop
Hi Saleh, This can be done through for loop. The documentation link to for loop is https://www.mathworks.com/help/matlab/ref/fo...

alrededor de 6 años hace | 0

| aceptada

Respondida
Error regarding the stateEstimatorPF
Hi Sameema, Please ensure that you have Robotics System Toolbox. I see the reason of erroring out while using the stateEstimat...

alrededor de 6 años hace | 0

Resuelto


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

alrededor de 6 años hace

Resuelto


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

alrededor de 6 años hace

Resuelto


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

alrededor de 6 años hace

Respondida
FSK and Adalm-Pluto
Hi Andrea, The error can be solved when the variable data passed to fskDemod is type casted to double. Update the following in ...

alrededor de 6 años hace | 0

| aceptada

Respondida
Various errors whilst running a while loop.
Hi Sam, This is the same as asked before here. https://www.mathworks.com/matlabcentral/answers/510426-running-a-kinematics-whi...

alrededor de 6 años hace | 0

Respondida
Binary string to double array
Hi Mariam, To convert string array to double array, compare it with character '1' and convert to double logicalMessage = messa...

alrededor de 6 años hace | 2

Respondida
There are many errors I cannot spot in this script. Can someone help please
Hi Gabriel, Yes. You are right, there are several errors. In the if condition of nargin == 0, the variable theta should be upd...

alrededor de 6 años hace | 1

| aceptada

Respondida
Vector Manipulation into a matrix?
Hi Daniel, This can be solved by first using the reshape function and then performing the circular shift operation. % Suppose ...

alrededor de 6 años hace | 1

| aceptada

Respondida
How to sum multiple rows elements within the matrix
Hi Abdulhakim, The mean and reshape functions are helpful for your case. Here is the code that does what is asked for. % Consi...

alrededor de 6 años hace | 0

| aceptada

Respondida
How to design aFIR filter without filter function
Hi Farhad, This code should do what is asked for. Since, you asked for FIR filter, a will be a scalar with value 1. function y...

alrededor de 6 años hace | 0

| aceptada

Respondida
Unrecognized function or variable 'transformPointsInverse'
Hi Christopher, The help of 'transformPointsInverse' and 'transformPointsForward' doesn't work, because these are methods of fe...

alrededor de 6 años hace | 0

| aceptada

Respondida
Complementary Code Keying ( 802.11b )
Hi Alice, Placing the working code separately. The function checkCCKCode will indicate if the provided inputs in1 and in2 satis...

alrededor de 6 años hace | 0

Respondida
How to display confusion matrix for each fold?
Hi Financeo, If the purpose is only to display the confusion matrix for each validation. The following approaches can be used ...

alrededor de 6 años hace | 0

| aceptada

Respondida
Which function do I need to use to plot 3D
Hi Alex, Based on the image, the surf function can provide the desired output. The usage details of surf command can be found h...

alrededor de 6 años hace | 0

Cargar más