フィルターのクリア

A table of y versus t every 1 second.

1 回表示 (過去 30 日間)
jay jay
jay jay 2022 年 12 月 13 日
回答済み: Askic V 2022 年 12 月 13 日
I have this equation:
y = exp((-c/(2*m))*t).*(A*sin(sqrt((k/m)-((c/(2*m))^2))*t)+cos(sqrt((k/m)-((c/(2*m))^2))*t))
Above is the equation of y(t).
I want to make a table of y versus t every 1 second.
But, how do i make a table of y versus t every 1 second?
I do know how to make the table itself.
table(y,t)

回答 (1 件)

Askic V
Askic V 2022 年 12 月 13 日
I would do somthing like this:
% assuming t and y are row vectors
M = [t.',y.'];
T = array2table(M);
T.Properties.VariableNames(1:2) = {'Time', 'Value'};

カテゴリ

Help Center および File ExchangePreprocessing Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by