Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 2

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

Mehr laden