Page 1 of 1

Write a MATLAB program that creates an array of 10 numbers and prints them. Get the first element of the array from the

Posted: Sat May 14, 2022 2:29 pm
by answerhappygod
Write A Matlab Program That Creates An Array Of 10 Numbers And Prints Them Get The First Element Of The Array From The 1
Write A Matlab Program That Creates An Array Of 10 Numbers And Prints Them Get The First Element Of The Array From The 1 (124.14 KiB) Viewed 65 times
Write a MATLAB program that creates an array of 10 numbers and prints them. Get the first element of the array from the user. The other elements of the array should be generated according to the rule: current array element is calculated as previous array element plus 1 times 2. You must use array to solve this question. You can print the content of the array either side by side or one element at a line. Example run outputs: >> quizá Enter the first element of the array: 5 5 12 26 54 110 222 446 894 1790 3582 >> quiz6 Enter the first element of the array: 5 5 12 26 30