문제를 풀었습니다


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

대략 13년 전

문제를 풀었습니다


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

대략 13년 전

문제를 풀었습니다


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

대략 13년 전

문제를 풀었습니다


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

대략 13년 전

질문


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

대략 13년 전 | 답변 수: 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...

대략 13년 전 | 답변 수: 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 ...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 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...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 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...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 답변 수: 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 ...

거의 14년 전 | 답변 수: 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...

거의 14년 전 | 답변 수: 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...

거의 15년 전 | 답변 수: 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...

거의 15년 전 | 답변 수: 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...

거의 15년 전 | 답변 수: 1 | 0

1

답변