已回答
I need help understanding what I am being asked
Hi Anthony, You are being asked to derive the equation of flow rate at each node in the pipe network. Then, solve those system ...

5 years 前 | 0

已回答
Raised Cosine Filter for Matlab
Hi Nathan, The usage of rcosdesign function in the code is correct, but the usage of upfirdn function is incorrect. The input ...

5 years 前 | 0

| 已接受

已回答
How to save a matrix to be able to use it in another m file
Hi Olivia, You can use save and load functions for this purpose. In the function, use save('RM03Input',RM03input1to1) % first ...

5 years 前 | 0

| 已接受

已回答
Newton's method(calculating the angel)
Hi Ahmed, To make the code working, perform the following changes: Update the while loop with proper condition Calculate fe a...

5 years 前 | 0

已回答
Newton's method(calculating theta)
Hi Ahmed, The condition you placed for the while loop is a series of vector. Update the condition as below and code requires mi...

5 years 前 | 0

| 已接受

已回答
How write a function that takes a matrix and period omega?
Hi Prathik, You are on the right track itself. Ensure that you define the output variable F and use omega input in the functio...

5 years 前 | 0

| 已接受

已回答
why is my nested if statement not working?
Hi Josh, The condition for the if statement must be placed side rather than in next line. Update the code of if statement with...

5 years 前 | 0

| 已接受

已回答
how would i get a while loop to repeat this code 26 times?
Hi Josh, You can do the following i = 1; % loop index while i <= 26 shiptext= [22 6;38 21;24 36;2 30;6 2;15 31;22 15;24 ...

5 years 前 | 0

| 已接受

已回答
Creating a vector randn
Hi, This page helps you to solve this. https://www.mathworks.com/help/matlab/math/random-numbers-with-specific-mean-and-varian...

5 years 前 | 0

| 已接受

已回答
about rand and randi command
Hi Oguzhan, For the sample code, you can use this function signature a = randi([0 10],1,1); % it will generate a random intege...

5 years 前 | 0

| 已接受

已回答
unknown code- can anyone help me with what this code does?
Hi Josh, This code performs sorting in descending order. r=rand(15,1) % This statement initializes r with 15 random numbers f...

5 years 前 | 1

| 已接受

已回答
Raised Cosine Filter in Matlab
Hi Nathan, Access the vector bits from 1 to 50 elements and pass as the first argument of stem function. Then, pass the bits d...

5 years 前 | 0

| 已接受

已回答
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...

5 years 前 | 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...

5 years 前 | 0

已回答
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 ...

5 years 前 | 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...

5 years 前 | 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...

5 years 前 | 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...

5 years 前 | 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 ...

5 years 前 | 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...

5 years 前 | 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...

5 years 前 | 0

| 已接受

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

5 years 前 | 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...

5 years 前 | 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 ...

5 years 前 | 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...

5 years 前 | 0

已回答
Complementary Code Keying ( 802.11b )
Hi Alice, This piece of code can check if the provided input obeys the CCK codes. function flag = checkCCKCode(in) % Returns ...

5 years 前 | 0

已回答
Running a kinematics while loop containing an if loop. I get the error: Index exceeds number of array elements(1).
Hi Sam, In the second statement of while loop, the variable a is indexed with value of 2, before setting the value of it. This ...

5 years 前 | 0

已回答
Why there is a mismatch in nrPRBS and my custom made pseudo-random sequence generator function?
Hi Ashish, The mismatch you observed between the outputs of nrPRBS and the custom written code is due to the comparison of vari...

5 years 前 | 1

| 已接受