解決済み


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

12年以上 前

解決済み


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

12年以上 前

解決済み


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

12年以上 前

解決済み


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

12年以上 前

解決済み


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

12年以上 前

回答済み
How can I convert a system with delay from continuous to discrete and from discrete to continuous and the result be the same?
When discretizing a model with a sampling time not commensurate with your time delay, you can use c2dOptions to tell c2d to appr...

約13年 前 | 4