解決済み


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年 前

解決済み


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年 前

解決済み


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

約6年 前

解決済み


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年 前

解決済み


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

約6年 前

解決済み


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年 前

解決済み


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

約6年 前

解決済み


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

約6年 前

解決済み


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年 前

解決済み


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

約6年 前

解決済み


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

約6年 前

解決済み


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

約6年 前

解決済み


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

約6年 前

解決済み


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年 前

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

解決済み


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年 前

解決済み


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年 前

解決済み


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年 前

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 2

回答済み
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年 前 | 1

| 採用済み

回答済み
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年 前 | 1

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

| 採用済み

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

約6年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

さらに読み込む