construct a vector containing numbers starting at 20 and counting backwards by ones to 10
construct a vector containing 15 randomly generated numbers between 1and 2
Best Answer
Here is the first solution using thecolon operator:
>> 20:-1:10
ans =
20 19 18 17 16 15 14 13 12 11 10
Learners learn most when they actually try things and learn from experience. Part of that process is learningwhere to find information, and actually MATLAB has great documentation which you can easily search using your favorite internet search engine. When I searched for "MATLAB random vector", the first links were the documentation that will tell you how to solve your second task.
If your favorite internet search engine is not working, then follow this link:
Your favorite internet search engine would find this, when you ask for "matlab check nodesktop". I like this forum, but sometimes a tiny web search is much faster.
Best Answer