Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Domanda


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

oltre 11 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 11 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

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

circa 12 anni fa | 0

Domanda


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

circa 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

circa 12 anni fa | 2 risposte | 0

2

risposte

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

circa 12 anni fa | 3

Domanda


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

circa 12 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 13 anni fa | 1 risposta | 0

1

risposta