Community Profile

photo

Ciara Gornoski


Active since 2018

Statistics

Content Feed

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

6 years ago | 1 answer | 0

1

answer