已解决


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

3 years 前

已解决


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

3 years 前

已解决


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

3 years 前

已解决


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 years 前

已解决


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

3 years 前

已解决


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

3 years 前

已解决


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

3 years 前

已解决


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

3 years 前

已解决


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.

3 years 前

已解决


Add two numbers
Given a and b, return the sum a+b in c.

3 years 前

已解决


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

3 years 前

已回答
Solving ODE in MATLAB with pre-defined steps
I'm affraid that is not an option, this question was answered pretty clearly in this post. If you want specific points I sugges...

3 years 前 | 0

已回答
select the correct row in a table with a different index in the for loop
Is this what you are looking for? for i=1:5:1440 j = i==1:5:1440; end Where j would be your new index in sequential orde...

3 years 前 | 1

| 已接受

已解决


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

3 years 前

已回答
How to simultaneously use logical indexing and date time indexing in a timetable?
Not to delete this question, I will answer it with what I found to be the closest to what I wanted through some documentation. ...

3 years 前 | 0

| 已接受

提问


How to simultaneously use logical indexing and date time indexing in a timetable?
Hi, Let's say I have a timetable with one of the variables being logical indexes, and I want to extract data from this timetabl...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Bar plot with two axis no plotting as grouped
Hi, I want to plot a bar plot with two axis, and I want the two y vars to be grouped, but they always come out as stacked. I a...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How to reference previous value in an array without a for loop?
Hi, I have a for loop set up following a similar structure to this: for i=2:size(data,1) data.Var3(i)=interp1(ref_dat...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How to apply a set of operations to each field in a structured array?
Hi, Lets say I have a structured array with multiple fields in it. Each of those can have more fields or a timetable. I attache...

3 years 前 | 0 个回答 | 0

0

个回答

提问


How to vertically join differently sized tables?
Hi, Lets say I have two tables: table1=table(1,70,175,29,datetime(1992,7,1),"M",'VariableNames',{'Num','Weight','Height','Age'...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How to avoid scientific notation in tables?
Hi, I have a table which I want to display (I am displaying it in and app from the Appdesigner), but when I do so I get in some ...

3 years 前 | 1 个回答 | 0

1

个回答

已解决


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

3 years 前

已解决


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

3 years 前

已解决


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

3 years 前

已解决


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

3 years 前

已回答
How to stackplot a table?
Finally figured it out, just reorder the data, I did it like this: load('example.mat') example=table; clear table tstamp=ver...

3 years 前 | 0

| 已接受

提问


How to stackplot a table?
Hi, I have a table of which I would like to make a stackedplot with each of its variables. I want to set the x axis as a datetim...

3 years 前 | 3 个回答 | 0

3

个回答

提问


How to make a table with date times and durations?
Hi, I have a set of datetimes and durations, and I want to merge them and display them in a table. I just can't figure out how t...

3 years 前 | 2 个回答 | 0

2

个回答

提问


How to remove autogenerated legend in stackedplot?
Hi, have the following stackedplot, and if I plot multiple variables in one of the stackedplots I get a legend that looks like t...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Is it possible to stack axes of different plots in the same figure?
Hi, I am trying to plot some data in Matlab, where the various y axes appear to be sort of stacked on top of eachother, each hav...

3 years 前 | 1 个回答 | 0

1

个回答

加载更多