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

Fluid mechanics VIVA QUESTIONS and ANSWERS

1. Define density? Ans: It is defined as the ratio of mass per unit volume of the fluid. 2. Define viscosity? Ans: It is defined as the property of fluid which offers resistance to the movement of fluid over another adjacent layer of the fluid. 3. Differentiate between real fluids and ideal fluids? Ans: A fluid, which is in-compressible and is having no viscosity, is known as ideal fluid while the fluid, which possesses viscosity, is known as real fluid. 4. What is a venturimeter? Ans: It is a device which is used for measuring the rate of flow of fluid flowing through pipe. 5. What is a notch? Ans: A notch is a device used for measuring the rate of flow of a fluid through a small channel or a tank. 6. Define buoyancy? Ans: When a body is immersed in a fluid, an upward force is exerted by the fluid on the body. This upward force is equal to the weight of the fluid displaced by the body. 7. Define meta-centre? Ans: It is defined as the point about which a body...

Welding VIVA question and answers

VIVA QUESTIONS : Q1: Define welding? Ans:  Welding is a fabrication process that joins two or more materials, typically metals or thermoplastics, by melting and fusing them together using heat or pressure. Q2: What is the typical thickness of MS Plate used in general welding workshop experiments? Ans:  The thickness of the MS (Mild Steel) plate used in general welding workshop experiments can vary depending on the specific requirements of the experiment. However, commonly used thicknesses range from 3 mm to 12 mm. Q3: What is the common job material used in welding experiments? Ans:  The common job material used in welding experiments is mild steel. It is widely available, affordable, and relatively easy to work with, making it suitable for various welding applications and practice. Q4: What is the main function of an electrode in welding? Ans:  The main function of an electrode in welding is to carry the electric current necessary for the welding process and to ...

Strength of Materials viva Question and Answers

1. Define Hooke’s Law.  Ans . It states that when the material is loaded within the elastic limit the stress is directly proportional to strain. i.e. Stress α strain. or Stress = constant x Strain 2. Define Strength of materials.   Ans . The strength of a material is its ability to withstand an applied stress without failure. 3. What is stress?  Ans . When load is applied on any object then a resisting force is induced, that resisting or reacting per unit area of cross-section is called stress. 4. What is strain? Ans . Stress is change in dimensions upon original dimentions. 5. What is deformation?  Ans . Deformation is change in dimensions of any object due to applied load. 6. On which steel you have performed tension test. What is its carbon content?  Ans . On mild steel (0.3 to 0.6% carbon). 7. What kind of fracture has occurred in tensile specimen.  Ans . Ductile fracture. 8. Define temperature stress. Ans . Stress introduc...

TIN SMITHY & Sheet metal

TIN SMITHY Introduction : Many engineering and house articles such as boxes, cans, funnels, ducts etc. are made from a flat sheet of metal. The process being known as tin smithy. For this the development of the article is first drawn on the sheet metal, then cut and folded, to form the required shape of the article. Allowance should be given in the drawing stage for folding and bending. This allowance depends upon the radius of the bend and thickness of the sheet metal. Sheet Metal Materials : A variety of metals are used in a sheet metal shop such as galvanized Iron, black, Iron, tin, Stainless Steel, copper and Aluminium. Hand Tools : The common hand tools used in sheet metal work are steel, try square, Wire gauge, Scriber, Ball peen hammer, Nylon Mallet, Snips Divider, Stakes, Cutting plier and Soldering Iron. Here, the details of tools that are being equipped by our workshop purpose only are presented. Wire Gauge: The thickness of sheet is referred in numbers known ...

Carpentry Viva Questions

Q1: Define carpentry? Ans:  Carpentry is a skilled trade that involves working with wood to construct, install, and repair structures and objects. It encompasses various tasks such as measuring, cutting, shaping, joining, and finishing wood to create functional and aesthetically pleasing products. Q2: What are the various types of wood material used in carpentry? Ans:  The various types of wood materials used in carpentry include softwoods (such as pine, fir, cedar, and spruce) and hardwoods (such as oak, maple, mahogany, and walnut). Other wood materials used in carpentry can include plywood, particleboard, MDF (medium-density fiberboard), and engineered wood products like laminated veneer lumber (LVL) and oriented strand board (OSB). Q3: What is the sequence of operations in carpentry? Ans:  The sequence of operations in carpentry typically involves planning and design, material selection and preparation, measuring and marking, cutting and shaping, joinery or fasteni...

sheet metal rectangular tray making

Aim :- To make a rectangular tray from a given metallic sheet. Tools Required MALLET Snip Stake STEEL RULE Ball peen HAMMER Straight EDGE RIVETS Scriber Procedure The given metal sheet is smoothed using mallet. The measurements of rectangular tray (tray development drawing) is drawn on the sheet with given dimensions using the scriber and steel rule. The sheet is cut as per the marked dimensions by straight snips. Fold or bend as per the given order using mallet and stake. Bending is done as per the given dimension using the stake and mallet. Rivet the folded sheet by using the given rivets and hammer. Safety Precautions Each cut you make exposes sharp edges and creates burrs that can slice a finger. Must Use Hand gloves when cutting the sheet. Metal waste also has hazardous edges. So...

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-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...

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...

MOULD WITH SPLIT PATTERN

Ex. No :                                                                                       Date : MOULD WITH SPLIT PATTERN Aim To make the mould for the given split pattern. Material required •  Moulding board •  Riser pin •  Moulding box •  Sprue pin •  Green sand •  Rammer •  Trowel •  Lifter •  Riddle •  Draw spike •  Gate cutter  •  Bellow •  Vent rod  Procedure 1. Place the moulding board on a horizontal surface. 2. The drag box is placed above the moulding board. Now one piece      of pattern is kept at  center of the drag as shown in figure. 3. The parting sand is spread before we keep the pattern. 4. Facing sand is spri...

Search This Blog