Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Frage


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

mehr als 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 12 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

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

mehr als 12 Jahre vor | 0

Frage


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

mehr als 12 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 12 Jahre vor | 2 Antworten | 0

2

Antworten

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

mehr als 12 Jahre vor | 3

Frage


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

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 13 Jahre vor | 1 Antwort | 0

1

Antwort