Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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.

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

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

6 years ago | 0

| accepted

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

6 years ago | 0

Solved


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

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 2

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

6 years ago | 1

| accepted

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

6 years ago | 1

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

Load more