Question

MATLAB question dont change subject Give the matlab code for the following, i need to find...

MATLAB question dont change subject

Give the matlab code for the following, i need to find the critical damping coefficient of a system

User will enter mass and stiffness and the code will print the critical damping coefficient

Give working code

or else i will badly downvote

Homework Answers

Answer #1

clc;clear all
m=input('Enter the mass: '); %%user enters the mass
k=input('\nEnter the stiffness'); %%user enters stiffness
criticaldamping=2*sqrt(k*m) %%%computes the critical damping

Know the answer?
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
Similar Questions
MATLAB question and do not change subject. if you dont know skip I need a working...
MATLAB question and do not change subject. if you dont know skip I need a working MATLAB code which will tell me the type of damping which is present in the system. there are 3 types of damping . use if else and give the result. take mass stiffness damping coefficient as input. Dont post wrong answer of i will badly dislike
MATLAB only. Dont change subject, if you dont know leave it Give me a matlab code...
MATLAB only. Dont change subject, if you dont know leave it Give me a matlab code which takes input mass , stiffness and damping from user the code will calculate natural frequency and the damping ratio use matlab dont give wrong or i will dislike badly
MATLAB , dont change the subject Give me a MATLAB code for obtaining principal stress from...
MATLAB , dont change the subject Give me a MATLAB code for obtaining principal stress from a given tensor of stress which is input by the user. Take input from user Use tensor method to obtain stress Give only correct code and if ans is wrong slightly it will be downvoted badly
MATLAB only. Computer science, do not change subject This is matlab question. Give me a working...
MATLAB only. Computer science, do not change subject This is matlab question. Give me a working code for cramers rule the function must accept and AUGMENTED matrix and then solve if the function you give will not accept augmented matrix i will badly dislike it Answer only correctly. take test cases to find output and match
This is to be answered on MATLAB . do not change subject take a stress tensor...
This is to be answered on MATLAB . do not change subject take a stress tensor as input from the user (2D). Write the matlab code which will give me the maximum shear stress arising. Give a working code only
I need a simple code for the shift cipher i find this wb page , it...
I need a simple code for the shift cipher i find this wb page , it explains the encryption and decryption process but i dont know how to implement this in Matlab https://www.khanacademy.org/computing/computer-science/cryptography/ciphers/a/shift-cipher Please write the code and i need in 2 hours
The following code must be written in Matlab I want to print the following in Matlab...
The following code must be written in Matlab I want to print the following in Matlab (x1,x2, x3, ....xn) = (0.33333, 0.33333, 0.33333,....) That is for n variables . The whole thing should be on the same line. I need to use fprintf and write out the coordinates with 5 decimal places of variable xn = (0.33333, 0.33333, 0.33333,....) Thanks!
i need this code to print a number of stars depending on how much the user...
i need this code to print a number of stars depending on how much the user wants and after * it prints no stars. if the user enters a negative number it should print "error invalid number" this is my code so far: def stars(n,i): stars(n, 1) if n <= 0: return "No stars" if i <= n: print("* ", end="") stars(n, i + 1) else: print("no stars") stars(n - 1, 1) n = int(input("enter an integer")) def main(): stars()...
I need to change the MATLAB code below to something else, but I need the solutions...
I need to change the MATLAB code below to something else, but I need the solutions to match each other. (Also try not to copy answer posted on chegg already) % % Problem 1.8 % clc; clear all; close all; % reset matlab w orthregdata; % load data n = length(a); w = ones(n,1); ma = w'*a/n; mb = w'*b/n; % ma = mean(a); % mb = mean(b); sa = norm(a-ma)/sqrt(n); sb = norm(b-mb)/sqrt(n); % sa = std(a,1); % Pass...
I need the code in C++ not C. please dont forget to create the menu!!!! Create...
I need the code in C++ not C. please dont forget to create the menu!!!! Create a phone book program that allows users to enter names and phone numbers of friends and acquaintances. Create a structure to hold contact information and use to calloc() reserve the first memory segment. The user should be able to add or modify phone book entries through a menu. Use the function to add contiguous memory segments to the realloc() original memory block when a...