已解决


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

已解决


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

12 years 前

已解决


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

已解决


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

提问


Trouble with finding appropriate conditions for logic
I have a blunt body (Apollo capsule) modeled. I wrote a function to read in the vertices and the normals from the STL of this mo...

12 years 前 | 3 个回答 | 0

3

个回答

提问


Proper use of the Secant method
I'm having difficulty utilizing the secant method is this code I'm developing. The program takes in inclination angles of a curv...

12 years 前 | 1 个回答 | 0

1

个回答

提问


Remove zero entries from cell arrays
Suppose I have a m x n cell array. Some of these cells contain a 1 x 2 matrix of values other cells contain just a zero. I want ...

12 years 前 | 2 个回答 | 0

2

个回答

提问


Weird result when using unique in a .m function file
I can't seem to figure out what is going on here. I'm trying to git rid of duplicate rows by using unique. At first I made a sep...

12 years 前 | 1 个回答 | 0

1

个回答

已回答
Ordering rows based on value
My data represents row indices of a cell array. Here is what I'm trying to do. Each row of a 6x4 cell array contains (x,y) co...

12 years 前 | 0

提问


Ordering rows based on value
Suppose I have a matrix of values as follows: matches = [1,2;1,4;2,5;3,4;3,6;5,6;]; Is there a way to "connect these row...

12 years 前 | 3 个回答 | 0

3

个回答

提问


cell comparison with other cells in different rows
I have a 6x2 cell array. Each cell is a 1x2 cell that contains an x and y co-ordinate. I want to be able to compare the contents...

12 years 前 | 2 个回答 | 0

2

个回答

已回答
Keyboard Short-cut for running a Scrip
F5 will run what you have in the script window. To run scripts one after the other from one script, just call them one after the...

12 years 前 | 3

提问


uitable with guide setting data to strings
I want to create a table that is n rows by 2 columns. The number of rows will be entered by the user upon running of the main pr...

12 years 前 | 0 个回答 | 0

0

个回答

提问


Inserting a 0 before a number and use of a comma in a cell of a uitable
I'm using GUIDE to make a user interface. The user inputs values for the number of points in the u direction and for the v direc...

13 years 前 | 1 个回答 | 0

1

个回答

提问


Off state of checkbox not being recognized in another function
I have a check box that I'm having problems with passing the value of. When the checkbox is clicked, I set col_add=1. If the ...

13 years 前 | 1 个回答 | 0

1

个回答

提问


Setting the number of rows and columns in a UItable
I'm doing some data analysis and I would like to program a way of generating a table based off of the number of points entered i...

13 years 前 | 1 个回答 | 0

1

个回答

提问


Delete entries in an array that are no longer needed
I'm performing an iterative calculation that runs through 100002 iterations. Imagine a nozzle with area1 for the inlet and area2...

13 years 前 | 1 个回答 | 0

1

个回答

提问


In regards to connecting points
After discussing the project more with my professor, I have learned that I did this wrong. What I was suppose to do was this: C...

13 years 前 | 1 个回答 | 0

1

个回答

提问


Connecting Points in a Scatter Plot
Here is what I'm tasked to do. I need to make three plots where in each plot the pressure and temperature change. In each of th...

13 years 前 | 1 个回答 | 0

1

个回答