Feeds
提问
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...
7 years 前 | 1 个回答 | 0