Question

Matlab Exercise #1 Syntax of MATLABThe Problem-Solving Tool for Engineers, High-Performance Numeric Computation and Very Powerful, Very Easy to Use MATLAB MatheGeneral Syntax of Matlab [output1, output2, ..]command_name(input1, input2, ...) » % (everything to its right on that line is>>save filename >> save filename xyz %(save variables x, y, and z to file) >>save filename x lascii /double >>load filenamewhat % shows the Matlab files and the MAT data % files under the current directory | » dir % shows all the files under the cu» casesen % switch off case sensitivity » help %on-screen information about Matlab commands To exit Matlab, type >>exit or qu1) Run the MATLAB program. 2) Execute MATLAB Commands introduced so far. 3) illustrate examples for the internal commands di

Matlab Exercise #1 Syntax of MATLAB
The Problem-Solving Tool for Engineers, High-Performance Numeric Computation and Very Powerful, Very Easy to Use MATLAB Mathematicians, and Scientists Visualization Software Matlab Prompt: ">>" or"o"
General Syntax of Matlab [output1, output2, ..]command_name(input1, input2, ...) » % (everything to its right on that line is ignored and is not executed) >> diary filename » diary off % close the diary
>>save filename >> save filename xyz %(save variables x, y, and z to file) >>save filename x lascii /double >>load filename
what % shows the Matlab files and the MAT data % files under the current directory | » dir % shows all the files under the current directory >> cd % shows the current directory » cd c:\userimsi % change directory >> clear a b c % clears specified variables (a, b, c) from % the workspace » ! % allows you to access the OS
» casesen % switch off case sensitivity » help %on-screen information about Matlab commands To exit Matlab, type >>exit or quit
1) Run the MATLAB program. 2) Execute MATLAB Commands introduced so far. 3) illustrate examples for the internal commands 'diary, and 'save.' Explain the difference between two commands. . 4) Among MATLAB Demos, illustrate an 3D example
0 0
Add a comment Improve this question Transcribed image text
Answer #1

[1] save(filename) saves all variables from the current workspace in a MATLAB® formatted binary file (MAT-file) called filename.

[3]
diary function use to keep an activity log of your session. ti will creates a verbatim copy of your MATLAB session in a disk file which not include graphics , audio file whereas save command used to keep any or all the variables in the current workspace to a MAT-file (.mat) because the workspace workspace clears When you quit MATLAB and if you want save and reuse just by loading the saved MAT-file.

Add a comment
Know the answer?
Add Answer to:
Matlab Exercise #1 Syntax of MATLAB The Problem-Solving Tool for Engineers, High-Performance Nu...
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
ADVERTISEMENT