• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Summary

Summary SOLIDPROFESSOR MATLAB Essentials - Graphing : Evaluation

Document preview thumbnail
Preview 1 out of 2 pages

Suppose there are two vectors x and y of equal lengths. What is the correct code to plot a Basic X-Y plot? - correct answersplot(x,y) Once you complete all your editing in the Figure Window, can you close or reuse the figure, and are all your edits automatically saved? - correct answersNo You can plot directly from the Workspace and the Plot toolstrip. - correct answersTrue Which option is the correct code that produces the following plot? - correct answersclear, clc, clf %reset windows x = -1 : 0.1 * pi : 2 * pi + 1 plot(x, sin(x), 'g--') hold on; %freezes plot plot(x, cos(x), 'r:') xlabel('Angle in radians') ylabel('sin(x) & cos(x)') legend('sin(x)', 'cos(x)') What correct code produces the following plot? - correct answersclear, clc, clf %reset windows %Define the variables atomic_number = [ 3, 11, 19, 37, 55] ; melting_point = [ 181, 98, 63, 34, 28.4 ] ; atomic_radius = [0.152, 0.186, 0.227, 0.2480, 0.2650 ] ; %%Plot using two y axes plot(atomic_number, melting_point) title('Periodic Properties')

Content preview

SOLIDPROFESSOR MATLAB Essentials
- Graphing : Evaluation
Suppose there are two vectors x and y of equal lengths. What is the
correct code to plot a Basic X-Y plot? - correct answersplot(x,y)

Once you complete all your editing in the Figure Window, can you close or
reuse the figure, and are all your edits automatically saved? - correct
answersNo

You can plot directly from the Workspace and the Plot toolstrip. - correct
answersTrue

Which option is the correct code that produces the following plot? -
correct answersclear, clc, clf %reset windows
x = -1 : 0.1 * pi : 2 * pi + 1
plot(x, sin(x), 'g--')
hold on; %freezes plot
plot(x, cos(x), 'r:')
xlabel('Angle in radians')
ylabel('sin(x) & cos(x)')
legend('sin(x)', 'cos(x)')

What correct code produces the following plot? - correct answersclear,
clc, clf %reset windows
%Define the variables
atomic_number = [ 3, 11, 19, 37, 55] ;
melting_point = [ 181, 98, 63, 34, 28.4 ] ;
atomic_radius = [0.152, 0.186, 0.227, 0.2480, 0.2650 ] ;
%%Plot using two y axes
plot(atomic_number, melting_point)
title('Periodic Properties')

Document information

Uploaded on
April 23, 2025
Number of pages
2
Written in
2024/2025
Type
Summary
$9.69

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
303
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions