回答済み
Change in odometer.
Hi Ireedui, It looks like you wanted to get the difference of two consecutive odometer readings. The diff function will help i...

約6年 前 | 1

| 採用済み

回答済み
save values in array
Hi there, It is not pretty clear as what you wanted to do. To get the desired output, perform the following: A={[1,6,3,2],[3,...

約6年 前 | 1

回答済み
How to convert decimal to binary form along with fractional values?
Hi Rajesh, A similar question is asked and answered in this https://www.mathworks.com/matlabcentral/answers/25549-convert-floa...

約6年 前 | 0

| 採用済み

回答済み
average each block of class in a matrix
Hi Alessio, The mean function will help in this case. Here is the documentation page of mean function having different examples...

約6年 前 | 0

回答済み
write a matlab function
Hi Jiaqi, I suggest you to go through MATLAB onramp course https://www.mathworks.com/learn/tutorials/matlab-onramp.html , which...

約6年 前 | 1

| 採用済み

回答済み
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 ...

約6年 前 | 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 ...

約6年 前 | 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 ...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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 ...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 0

| 採用済み

解決済み


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

約6年 前

解決済み


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

約6年 前

解決済み


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

約6年 前

解決済み


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

約6年 前

解決済み


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

約6年 前

解決済み


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

約6年 前

解決済み


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

約6年 前

解決済み


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

約6年 前

解決済み


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

約6年 前

解決済み


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

約6年 前

解決済み


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

約6年 前

解決済み


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

約6年 前

解決済み


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

約6年 前

さらに読み込む