Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

signals and systems matlab please help MX My Arbeid Files X N Spring 2021 - X Lab informatie Structure.com/courses/1324501/files/folder/Lab/Lab%201%3A%20Basic%20Decimal%20M Page Using the editor in Matlab,

signals and systems matlab please help
image text in transcribed
image text in transcribed
MX My Arbeid Files X N Spring 2021 - X Lab informatie Structure.com/courses/1324501/files/folder/Lab/Lab%201%3A%20Basic%20Decimal%20M Page Using the editor in Matlab, make a Script that does what is described by the numbered statements Write your answers to the questions in the answer sheet provided in the Lab 1 file on Canvas Let the TA know if you have questions or we can help in any way. Please turn in both the answer sheet for the questions, and the file that containsyour code. Be sure that your script does each of these commands sequentially. Also be sure this is in a script and not just the command window The Matlab Script should 1. Clear the command window 2. Clear the workspace Question 1 Why do we clear the command window and workspace at the beginning of a script? 3. Define a variable to be equal to 3 4. Define a new variable to be equal to 5 5. Define a third variable to be equal to the sum of the first two. (addition) 6. Define a fourth variable to be equal to the product of the first two multiplication) 7. Define a fifth variable to be equal to the second variable minus the first (difference) 8. Define a sixth variable to be equal to the second variable divided by the first. (division) Question 2 Why wouldwe use variables instead of just using the numbers, which is called hard coding? Question : Think about what system would you personally use to organize your variables and remember what each means? Give a few examples with explanations of what they mean 9 Create a new section and ttle it "Matrox Math 10 Define a new variable to be an array from the number 1 to 10 that includes on the whole numbers between 1 and 10 11 Show a second way to define anew variable to be an array from 1 to 10 that includes only the whole numbers between 1 and 10 Question 4 How can array indexing bebendic 12 Define a new vanse for the marshown below 12 Define a new variable use the coriand for the macrosticwn below Try typ helpeye) into the command window if you need assista) helpleye) into the command window if you need assistance) OR 14. Define a new variable to be the sum of the variables created in steps 12 and 13 15. Define a new variable to be the product of the variables defined in steps 12 and 13. 16. Define a new varlable to be the element-wise product of the varlables defined in step 13. 17. Define a new variable to be the difference of the first matrix min us the second in step 13. 18 (Remember your linear algebra Define a new variable to be the matrx equivalent of the variable from step 12 by the variablefrom step 13 Lab 1: Basic Decimal Matlab 19. Define a new variable and show a second way to perform step 18 I 20. Write your name in a comment at the end of the script Question 5: In your opinion, would the automatically generated variable ans or a user-definec be more useful in writing scripts Feedback What went well 2 MX My Arbeid Files X N Spring 2021 - X Lab informatie Structure.com/courses/1324501/files/folder/Lab/Lab%201%3A%20Basic%20Decimal%20M Page Using the editor in Matlab, make a Script that does what is described by the numbered statements Write your answers to the questions in the answer sheet provided in the Lab 1 file on Canvas Let the TA know if you have questions or we can help in any way. Please turn in both the answer sheet for the questions, and the file that containsyour code. Be sure that your script does each of these commands sequentially. Also be sure this is in a script and not just the command window The Matlab Script should 1. Clear the command window 2. Clear the workspace Question 1 Why do we clear the command window and workspace at the beginning of a script? 3. Define a variable to be equal to 3 4. Define a new variable to be equal to 5 5. Define a third variable to be equal to the sum of the first two. (addition) 6. Define a fourth variable to be equal to the product of the first two multiplication) 7. Define a fifth variable to be equal to the second variable minus the first (difference) 8. Define a sixth variable to be equal to the second variable divided by the first. (division) Question 2 Why wouldwe use variables instead of just using the numbers, which is called hard coding? Question : Think about what system would you personally use to organize your variables and remember what each means? Give a few examples with explanations of what they mean 9 Create a new section and ttle it "Matrox Math 10 Define a new variable to be an array from the number 1 to 10 that includes on the whole numbers between 1 and 10 11 Show a second way to define anew variable to be an array from 1 to 10 that includes only the whole numbers between 1 and 10 Question 4 How can array indexing bebendic 12 Define a new vanse for the marshown below 12 Define a new variable use the coriand for the macrosticwn below Try typ helpeye) into the command window if you need assista) helpleye) into the command window if you need assistance) OR 14. Define a new variable to be the sum of the variables created in steps 12 and 13 15. Define a new variable to be the product of the variables defined in steps 12 and 13. 16. Define a new varlable to be the element-wise product of the varlables defined in step 13. 17. Define a new variable to be the difference of the first matrix min us the second in step 13. 18 (Remember your linear algebra Define a new variable to be the matrx equivalent of the variable from step 12 by the variablefrom step 13 Lab 1: Basic Decimal Matlab 19. Define a new variable and show a second way to perform step 18 I 20. Write your name in a comment at the end of the script Question 5: In your opinion, would the automatically generated variable ans or a user-definec be more useful in writing scripts Feedback What went well 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

List the four parts of the self-motivation model.

Answered: 1 week ago

Question

1.what is the significance of Taxonomy ?

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago