Skip to main content

Matlab code for plot with limit values

Also Read



clear all
clc
fprintf('\n fixing a Graph\n')
theta = 0:.2:4*pi
y1 = cos(theta);
y2 = sin(theta);
y3 = atan(theta-(pi/2));

plot(theta,y1, 'b-*', theta,y2,'m.',theta,y3,'g--')
axis([0 4*pi -2 2]);
xlim([0 6.5])
ylim([-1.5 1.5])
title('Sample Function');
legend('cos','sin','atan');
xlabel('Angle');
ylabel('Value');


Comments

Recent posts

Isometric drawings for practice in AutoCAD

What is Isometric Drawing? Isometric drawing is a method of visually representing three-dimensional objects in two dimensions. It allows for a clear and comprehensive depiction of complex structures by keeping the scale consistent and eliminating distortion. Isometric drawings use a 30-degree angle from the horizontal in all three axes (X, Y, and Z), creating a pseudo-3D effect where the height, width, and depth are equally foreshortened. Creating Isometric Drawings in AutoCAD AutoCAD provides tools and settings that make creating isometric drawings straightforward. Here’s a step-by-step guide: Step 1: Set Up Isometric Snap/Grid 1. Enable Isometric Snap/Grid:    - Type `SNAP` in the command line and press `Enter`.    - Type `Style` and press `Enter`.    - Choose `Isometric` and press `Enter`. 2. Switch Between Isoplanes:    - Type `F5` or `CTRL+E` to toggle between the top, right, and left isoplanes. Step 2: Draw Isometric Circles and Arcs 1. Isom...

Coordinate systems in AutoCAD

World Coordinate System (WCS), User Coordinate System (UCS). There is 4 AutoCAD coordinates system you should know. Absolute coordinate system , Relative Rectangular coordinate system, Relative Polar coordinate system and Interactive system(Direct coordinate system). Absolute Coordinate system: Absolute Coordinates uses the Cartesian System to specify a position in the X, Y, and (if needed) Z axes to locate a point from the 0-X, 0-Y, and 0-Z (0,0,0) point. To locate a point using the Absolute Coordinate system, type the X-value, Y-value, and, if needed, the Z-value separated by commas (with no spaces). Syn: Enter LINE command: L [Enter] Start line at point A: 0,0 [Enter] End first line at point B: 2,2 [Enter] End of second line at point C: 2,3 [Enter] Examples shown bellow. Relative Rectangular Coordinate system: After first points entered, your next points can be entered by specifying the next coordinate compare/relative f...

Welding-LAP JOINT

Ex. No :                                                                              Date : LAP JOINT Aim To join the given two work pieces as a lap joint by arc welding. Material used Mild Steel plates. Tools required Welding power supply  Flat file Welding rod Chipping hammer Electrode holder Wire brush Gloves and apron Earthing clamps Shield and goggles Procedure The given workpieces are thoroughly cleaned, i.e. rust, scales are removed and the  edges are filed. The electrode is held in an electrode holder and ground clamp is clamped to the  welding plates and the power is supplied. The workpieces are positioned on the table to form a “Lab joint”. The tag weld is done on the both the ends of joining plates to avoid the m...

step by step procedure to draw hook 2D drawing using AutoCAD

1. Create one vertical line and two horizontal lines like shown below according to dimensions. 2.Draw the circles at intersecting points like shown below with given dimensions. 3. Draw TTR (tangent tangent Radius) circles like shown below with given radius values. 4. Trim extra elements using " TR " command the final image be shown like below. 5. Now draw another reference lines and circles using TTR(tangent tangent Radius) circle according to given dimensions. 6. Now Trim the extra elements by using "TR" command. 7. Now dimension the elements using DIM command.

SINGLE ‘V’ BUTT JOINT

Experiment No.:                                                                                      Date: SINGLE ‘V’ BUTT JOINT Aim: To prepare a single ‘V’ Butt Joint as per dimensions given in the sketch. Material Required: Mild Steel plates: 80mm X 40mm X 6mm = 2 Nos Mild Steel electrode ¢ 3.15 mm Equipment required: A.C. Transformer with all welding accessories like Electrode holder, cables. Tool Required: Steel rule 300mm  Scriber 150mm Flat file 300mm Try square 200mm Flat Tong 450mm  Chipping hammer 200mm Ball peen hammer 750mm  Wire brush Welding screen Sequence of Operations: 1. Marking  2. Filing  3. Welding  4. Finishing Procedure: Take two Mild steel plates of size 80mm X 40mm X 6mm. Fix the wor...

Welding-TEE FILLET JOINT

Ex. No :                                                                                 Date : TEE FILLET JOINT Aim To join the given two work pieces as a ‘Tee fillet joint’ by arc Welding. Material used Mild steel plates. Tools required • Welding power supply • Flat file • Welding rod • Chipping hammer • Electrode holder • Wire brush • Gloves and apron  • Earthing clamps • Shield and goggles Procedure The given workpieces are thoroughly cleaned, i.e. rust, scales are removed and the  edges are filed. The electrode is held in an electrode holder and ground clamp is clamped to the  welding plates and the power is supplied. The workpieces are positioned on the table to form a “Tee fillet joint”. The tag weld is done on the bo...

ROCKWELL HARDNESS TEST

Aim :-To determine the Rockwell hardness for the given test specimen Equipment :-Rockwell Hardness Testing Machine,suitable indenter, test specimens. Description :-Hardness may be defined as resistance of metal to plastic deformation usually by indentation. However the term may also refer to stiffness or temper or resistance to scratch, abrasion or cutting. There are three general types of hardness measurements depending upon the manner in which the test is conducted. Scratch hardness measurement. Rebound hardness measurement. Indentation Hardness measurement. In scratch hardness method the materials are rated on their ability to scratch one another and mineralogists use it. In rebound hardness measurement, a standard body is usually dropped on to the material surface and the hardness is measured in terms of the height of its rebound. The general means of judging the hardness is the resistance of a material to indentation. Indentation hardness may be measured by various h...

SMITHY Shop Tools

Smithy (Forging) Shop Tools: Smith’s Forge or Hearth :  It is used for heating purpose during the forging operation .  The structure of hearth is made of cast iron or cast steel. It has four-legged support, an hearth known as bottom, a chimney along with hood. An opening is also provided on the rear side of the structure to supply the air into the furnace.The hearth is covered by fire bricks lining.For quenching purpose, a water tank is also provided in front side of forge. Air under pressure is supplied to the furnace by the blower. List of tools used in forging shop (1) Fullers (Pair is required) (2) Swages (Pair is required)  (3) Flatter (4) Set Hammer (5) Chisels (6) Punch and Drift  (7) Drifts Anvil:  The anvil forms a support for black smiths work when hammering. The body of the Anvil is made of mild steel with a tool steel face welded on the body but the beak or horn used for bending curve is not steel faced. The round hole in the Anvil called ...

SolidWorks Practice parts

Solidworks practice parts Click here to view step by step process to make these basic shapes using solidworks Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5 Exercise 6 Exercise 7 Exercise 8 Exercise 9 Exercise 10 Exercise 11 Exercise 12 Exercise 13 Exercise 14 Exercise 15 Exercise 16 Exercise 17 Exercise 18 Exercise 19 Exercise 20 Exercise 21 Exercise 22 Click here to view step by step process to make this shape using solidworks

STRESS STRAIN CHARACTERISTICS OF MILD STEEL BAR BY UTM

Aim: To study the stress strain characteristics of mild steel by Universal Testing Machine Equipment: Universal testing machine meter rule, dividers and scale, Test specimen Theory: In tension test of ductile metals, the properties usually determined are yield strength, ultimate tensile strength, modulus of elasticity, percentage of elongation etc. For brittle materials only compressive strength is determined. The tension test is normally carried out in a Universal Testing Machine (UTM). The specimen can be in the form of a rod or a plate. The dimensions of standard specimen can be known from accepted specifications. The following properties can be determined from the stress strain curve of the material: Proportional limit: is that point on the stress strain curve at which the curve deviates from linearity, i.e. from the relation Stress = Young's modulus x strain $\sigma = E \varepsilon$ Elastic limit: is the point on the stress strain curve above which plastic de...

Search This Blog