Community Profile

photo

Ryan Magee


Washington State University

Active since 2013

Statistics

All
  • Thankful Level 1
  • Solver

View badges

Content Feed

View by

Question


Efficiently find indices in matrix
Massive edit/complete rewording by example. if true A = [1:10]; for i = 1:10, for j = 1:10, ...

10 years ago | 2 answers | 0

2

answers

Question


Keep only elements that appear multiple times
Hey everyone, been banging my head against this for awhile and can't come up with something efficient. I have a large matri...

11 years ago | 5 answers | 0

5

answers

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

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

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

11 years ago

Question


Plotting elements of a matrix versus elements of another
I have two m x n matrices. I want to make a scatter (well, a STEM really) that plots the 'x' value in index i,j of the first ma...

11 years ago | 1 answer | 0

1

answer

Question


How to delete rows where one element is forced to meet some criteria off of a 2xn array
Hey all. I did a good deal of searching, but I'm having some trouble removing specified elements of an array. Basically, I hav...

11 years ago | 2 answers | 0

2

answers