MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know how to create the code for these questions. Please show the entire code.
As per the HomeworkLib policy on multiple questions, answer to question (2) is being given here:
From the given relation:
The corresponding MATLAB script is as the following:
%==============================================
clc;
clear all;
h = input('Please provide the height : ');
% Given data:
V = 25;
R1 = sqrt((3*V)/(pi*h*4.36));
R2 = 1.4*R1;
S = (pi*(R1+R2)*sqrt((R1-R2)^2 + h^2)) + pi*R1^2;
fprintf('The frustum of the cone with volume %d cubic
centimeters ',V);
fprintf('Has radii values of R1 and R2 equal to %.3f and %.3f
respectively. Also, the surface area is %.3f squared centimeters
',R1,R2,S);
%==============================================
Sample run:
Please provide the height : 10
The frustum of the cone with volume 25 cubic centimeters
Has radii values of R1 and R2 equal to 0.740 and 1.036
respectively. Also, the surface area is 57.537 squared
centimeters
MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know...
MATLAB only please I am trying to get my getdatafuntion to work. I am also trying to get all my x's, y's, and v's to popup in the command window so I can put in any value and it will find the value for me using the equation I put in. function project_9_sjl() % PROJECT_9_SJL project_9_sjl() is the driver function for the program. % % Name: Scott Lawrence % Date: 3/27/2019 % Class: CMPSC 200 % Description: Determine the optimal...
i need help solving these questions,please don’t know how to solve it by using matlab.! Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to...
Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture i sent is the first page 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...
MATLAB help! I have some MATLAB Assignment to do, the proffesor requires all the small parts in order to get full credit. Help me out, thank you f LAB SECTION NAME HW6P3 (30 points) following are infinite series representations of the function, un pra i a script file HW6P3 that determines the value of the function from the sum of the series for a given value of x. The program (1 pt) must prompt the user to enter a value...
This is a matlab HW that I need the code for, if someone could help me figure this out it would be appreciated. The value of t can be estimated from the following equation: in your script file, estimate the value of π for any number of terms. You must ask the user for the desired number of terms and calculate the absolute error/difference between your calculation and the built-in MATLAB value ofpi. Display your results with the following message...
I have included what I need to do for part b, and what I have so far. I 2.2 Part B Write a default version of program to report the behavior of the Linux kernel by inspecting kernel state. The program should print the following values to the user screen or console: CPU type and model Kernel version Amount of time since the system was last booted, in thefomdmm:5s (for example, 3 days 13 hours 46 minutes 32 seconds would...
help wanted? Introduction to Engineering I Spring 2019 MATLAB Homework Assignment 1 a) Create a matrix called d from the third column of matrix a. (Hint, typing d 22: 5: 821 b) Combine matrix b and matrix d to create matrix e, a two-dimensional matrix with three rows c) Combine matrix b and matrix d to create matrix f, a one-dimensional matrix with six rows and d) Create matrix g from matrix a and the first three element of matrix...
i need help filling out this table please Balloon # Moles of gas that could in theory be produced Liters of gas that could in theory be produced % yield of gas produced -- show calc Show calculations for theoretical moles of gas and theoretical Liters of gas: [4.5pts] If the moles of a gas are known, along with the temperature and pressure, the volume of the gas can be calculated. This is how the theoretical volume of gas produced...