Community Profile

photo

Steven M


Last seen: 12 dagen ago Active since 2017

Followers: 0   Following: 0

Aerospace Engineering undergraduate student at KU

Statistics

All
  • Thankful Level 1
  • Commenter
  • Solver

View badges

Feeds

View by

Question


How to place a number in a random position in a matrix of zeros?
I have a matrix "m" of zeros(6,7) and I would like to know how to place a variable equaling 1 into a random spot in the matrix. ...

bijna 7 jaar ago | 1 answer | 1

1

answer

Question


I am trying to find the number of nonzero elements I have in a matrix without using the nnz function.
Is there a way I can use sums or another function to add up the number of nonzero elements in a matrix. I know of the nnz funct...

bijna 7 jaar ago | 2 answers | 0

2

answers

Question


How to find which column in a matrix/array has a nonzero value?
I am given a matrix: x = zeros(6,7) which can have one random nonzero value in the sixth row and I need to be able to det...

ongeveer 7 jaar ago | 1 answer | 0

1

answer