A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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.

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

A résolu


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

environ 6 ans il y a

Réponse apportée
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 ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 2

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Unrecognized function or variable 'transformPointsInverse'
Hi Christopher, The help of 'transformPointsInverse' and 'transformPointsForward' doesn't work, because these are methods of fe...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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 ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Charger plus