I need help coding a problem for a matlab class

5 个评论

This is the set up for the problem
If you show us the code you've written to try to solve the homework problem and ask a specific question about where you're having difficulty we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Look at input(), plot()
t=0:.01:5;
h=%your equation
this was my code for 1 part b and when I run it and no matter what I input it says my I entered 1. Is there something inherently wrong with my code?
damping=-1;
while damping < 0
damping=input('Enter starting damping coeffecient (greater than zero)');
end

回答(0 个)

此问题已关闭。

关闭:

2021-8-20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by