So far i have this VEC = input(\'Please type a value that is > 9 and < 21:\') if
ID: 3617092 • Letter: S
Question
So far i have thisVEC = input('Please type a value that is > 9 and < 21:')
if VEC < 10 || VEC > 21
error('Incorrect Input... Quitting!')
Vec1 = input('Type in a value for the first element:')
But not sure if I'm on the right track.. Could someone help me withthis problem
Explanation / Answer
Hey, I saw also your previous post. I have created a part of yourprogram. You must use for .... end or if .... end combinations. The endmarks gives MATLAB the information that the for loop or the ifstatement is ended. It is further usefull to use identation. I do not understand task 4 4) According to the following rule creates VEC: (3points) + the (k+1)th element is equal to (kth element + 1 ) and is lessthan 25. +In case the (kth + 1) element becomes equal to 25, then itis replaced by the value zero But I have created some for loop which add elements to the vectorVEC Also, i have reversed the vector, which was task 5 of yourprogram. You can send me a private message for more information. % initialize the vector VEC = []; n = 1; VEC_length = input('Please type a value that is > 9 andRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.