Suppose x takes on the values x 1, 1.2, 1.4, . . . , 5. Use MATLAB to compute the array y that results from the function y 7 sin(4x). Use MATLAB to determine how many
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Frederick Ampienyi
am 28 Mär. 2023
Beantwortet: Pratheek
am 28 Mär. 2023
Suppose x takes on the values x = 1, 1.2, 1.4, . . . , 5. Use MATLAB to compute the array y that results from the function y = 7 sin(4x). Use MATLAB to determine how many elements are in the array y and the value of the third element in the array y.
1 Kommentar
Dyuman Joshi
am 28 Mär. 2023
This looks like a Homework problem. Show us what you have tried and answer a specific question.
If you aren't sure where to start because you're not familiar with how to write code in MATLAB, I suggest you start with the free MATLAB Onramp tutorial to learn the essentials of MATLAB.
Akzeptierte Antwort
Pratheek
am 28 Mär. 2023
The below code will help you to do all the task's you asked for.
x=1:0.2:5;
y=7*sin(4*x);
num_elements=length(y);
third_element=y(3);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!