Question

Please write the code for following in MATLAB: Matlab: Open a new script window under New...

Please write the code for following in MATLAB:

Matlab: Open a new script window under New on the toolbar. The window is blank. Write code that you want to  execute more thanonce or that you do not want to do in the command window. A script has access to all the  variables listed in the workspace. Save the file as Name.m   Put the commands in the script window

a = poly([1 ‐1 4 6])  
t=0:0.01:10;  
q = polyval(a,t);  
plot(t,q)  
Save the script as Poly1.m   In command window  

clear


Poly1  


Run the program from the command window by typing Name only.  

  Octave: procedure to create and run a script is the same as described for MatLAB with this exception: the script  must be written in an ASCII text editor and saved in a file that can be accessed by Octave. Notepad and even  Wordpad work on a PC, TextEdit on a Mac or a script file can be created and saved as an m‐file in a unix/linux  command line window with pico or nano. The Home Directory or My Documents can usually be accessed by  Octave.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MatLab

Output

Add a comment
Know the answer?
Add Answer to:
Please write the code for following in MATLAB: Matlab: Open a new script window under New...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT