How can I plot first harmonic wave from a wave data (Excel)
9 ビュー (過去 30 日間)
古いコメントを表示
回答 (2 件)
Yash Srivastava
2023 年 3 月 23 日
Hi Hesham,
In my understanding you need to plot data in 'waves.csv' in MATLAB.
For this you can use 'readtable' function to read data in MATLAB and plot the data using 'plot' function.
data=readtable('wave.csv');
plot(data, "Var1", "Var2")
Since no header is provided in .csv file, MATLAB assigns defaultvariable names, "Var1" and "Var2", to the column.
Please refer to the following documentation for more info on 'readtable'.
Thanks
Vishwa
2023 年 3 月 24 日
Hi Hesham,
MATLAB provides Curve Fitting Toolbox™ which has a fit type with fourier series. For only fundamental component, you can restrict the number of terms in the dialogue box to just 1.
Following MATLAB documentation might be helpful.
openExample('curvefit/FitFourierModelsInteractivelyInCurveFitterAppExample')
Thanks.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!