Community Profile

photo

Ciara Gornoski


1 total contributions since 2018

Contributions in
View by

Question


Using nested loops, write a Matlab program that goes through all elements of a matrix (2D array) and replaces every element that is either a multiple of 5 or 7 with -1.
This is what I have so far... A=input('enter an array'); num_rows = size(A,1); num_cols = size(A,2); f...

mehr als ein Jahr ago | 1 answer | 0

1

answer