Solved


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

nästan 12 år ago

Solved


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

nästan 12 år ago

Solved


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

nästan 12 år ago

Solved


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

nästan 12 år ago

Question


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

nästan 12 år ago | 3 answers | 0

3

answers

Question


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

nästan 12 år ago | 1 answer | 0

1

answer

Question


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

mer än 12 år ago | 2 answers | 0

2

answers

Question


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

mer än 12 år ago | 1 answer | 0

1

answer

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

mer än 12 år ago | 0

Question


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

mer än 12 år ago | 3 answers | 0

3

answers

Question


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

mer än 12 år ago | 2 answers | 0

2

answers

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

mer än 12 år ago | 3

Question


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

mer än 12 år ago | 0 answers | 0

0

answers

Question


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

nästan 13 år ago | 1 answer | 0

1

answer

Question


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

nästan 13 år ago | 1 answer | 0

1

answer

Question


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

nästan 13 år ago | 1 answer | 0

1

answer

Question


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

mer än 13 år ago | 1 answer | 0

1

answer

Question


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

mer än 13 år ago | 1 answer | 0

1

answer

Question


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

nästan 14 år ago | 1 answer | 0

1

answer