フィルターのクリア

How do I plot separately the rows of a matrix?

11 ビュー (過去 30 日間)
Stefanos Nistor
Stefanos Nistor 2020 年 7 月 12 日
コメント済み: Stefanos Nistor 2020 年 7 月 12 日
Hey guys,
I am fairly new to MATLAB. I have some data from a wind tunnel experiment. Each one of my .txt files has 6 rows and multiple columns. The rows represent Fx, Fy, Fz, Mx, My, Mz. I have to use a function/script I already got given to get and plot the Power Spectral Density of each one of them seperately. This is what I have written already.
clc; clear all; close all;
list=dir('*.txt');
for i=1:length(list)
data=importdata(list(i).name);
end
Inside my for loop I have to somehow go through each row, use the PSD function I have and plot the result.
Can someone help me?
Thank you in advance,
Stef

回答 (1 件)

madhan ravi
madhan ravi 2020 年 7 月 12 日
plot(matrix.')
  1 件のコメント
Stefanos Nistor
Stefanos Nistor 2020 年 7 月 12 日
Thank you for the answer Madhan!!!
I have a script/function Fourier_Trans(data,sf,windows). The data input for the function needs to be every row of my .txt file. Moreover, all of this is in a for loop with 7 .txt files. That mean I need 42 graphs as an output.
Can you please advice me on how to proceed?
Thank you,
Stef

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by