Feeds
질문
Logical Indexing: Using a 1x18 array to build a 200*18 matrix
Hello, Failmatrix is a 200x18 binary matrix. Costmatrix is a 1x18 array of cost integers. I am trying to create a 200x1 matri...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
Can looping values be used for indexing?
Hello, I have a variation of the following code running but I am looking to make the code a bit more efficient by looping inste...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
Alternative to 'find' which won't return multiple values?
Hello, I am running the following code, which works most of the time but occasionally causes issues. The problem is that ocassi...
대략 5년 전 | 답변 수: 2 | 0
2
답변질문
Just how random are random numbers in MATLAB?
Hello, I am working on a project that requires random whole number generation between 1:20,000, repeated 10 times. Every single...
대략 5년 전 | 답변 수: 2 | 0
2
답변질문
How to sum a row of variables during a loop
Hi, dont know if this is possible but I'll ask anyway. I have a 100*2 matrix. I want to check if each value equals 1 or zero, i...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
Trying to generate a value each loop, and then add that value to multiple variables in an array
Hello, Say I have an array with 2 variables, LPCopen and HPCopen. I would like to create a loop that each generation will ad...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
Residuals from a Two-Way ANOVA
Here is my code, I am trying to extract and plot the residuals, really not sure how to go about it y = [ 73 68 67 67 73 ...
대략 5년 전 | 답변 수: 0 | 1
0
답변질문
Receiving 'Dimensions of arrays being concatenated are not consistent.' error, but there are equal amounts of rows being input.
I am trying to make a table where the first column is variable names, and the second is variable data. I have tried; T = table(...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
Identifying certain x value of a graph when x is not dependent on y?
Hi, I have plotted 2 columns of data from an excel sheet, I have identified several peaks and I would like to know the times as...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
Trying to randomly place "ships" on a matrix for a game of battleship, running a loop to stop ships from overlapping but it continually tells me "index exceeds matrix dimensions", any pointers on how to execute the loop properly would be appreciated
function M = AddShip( Matrix, length1) M=Matrix; %SHIP1--CRUISER(22) loop_on=0; while loop_on==0 ...
9년 초과 전 | 답변 수: 0 | 0