Info

This question is closed. Reopen it to edit or answer.

Assume the user inputs an array names "A", write code that computes, and saves the number of rows and columns in "A"

1 view (last 30 days)
User input for array and reading the number of columns and rows of said array.

Answers (1)

David Hill
David Hill on 9 Nov 2019
[cols,rows]=size(A);

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!