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개)

이 질문은 마감되었습니다.

질문:

2020년 9월 24일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by