フィルターのクリア

How to plot a acceleration vs time harmonic graph ?? What is the code ?

3 ビュー (過去 30 日間)
Bhoomika B
Bhoomika B 2024 年 2 月 2 日
コメント済み: Bhoomika B 2024 年 2 月 2 日
I got value of acceleration and time value want to plot a harmonic graph using that value how to do it

採用された回答

Karanjot
Karanjot 2024 年 2 月 2 日
Please clarify the term 'harmonic graph'. I am sharing instructions for a 2-D line plot given vectors for acceleration and time.
To plot a graph using the values of acceleration and time, you can use the plot function in MATLAB. Here's an example of how you can do it:
% Define the values of acceleration and time
acceleration = [0, 1, 0, -1, 0];
time = [0, 1, 2, 3, 4];
% Plot the harmonic graph
plot(time, acceleration)
% Add labels and title to the plot
xlabel('Time')
ylabel('Acceleration')
title('Harmonic Graph')
In this example, the acceleration variable represents the values of acceleration at different time points, and the time variable represents the corresponding time values. The plot function is then used to create the harmonic graph by plotting the acceleration values against the time values. Finally, the xlabel, ylabel, and title functions are used to add labels and a title to the plot.
  2 件のコメント
Bhoomika B
Bhoomika B 2024 年 2 月 2 日

How to plot using this value?

Bhoomika B
Bhoomika B 2024 年 2 月 2 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by