Filter löschen
Filter löschen

How can I trigger data?

3 Ansichten (letzte 30 Tage)
Miriã Santos Godói
Miriã Santos Godói am 3 Okt. 2023
Kommentiert: Voss am 5 Okt. 2023
How can I trigger data?
I have three matrix and I want to trigger among them.
I don't known how to start. Please, help me!
  9 Kommentare
Miriã Santos Godói
Miriã Santos Godói am 5 Okt. 2023
Voss
Voss am 5 Okt. 2023
OK. These appear to be the same as the text files you already uploaded, only with a different extension.
unzip KCl_50kV_3.zip
% read the text files
txt_files = dir('*.txt');
n_files = numel(txt_files);
for ii = 1:n_files
txt_files(ii).data = readmatrix(txt_files(ii).name);
end
% read the lvm files
lvm_files = dir('*.lvm');
n_files = numel(lvm_files);
for ii = 1:n_files
lvm_files(ii).data = readmatrix(lvm_files(ii).name,'FileType','text');
end
% compare each one
isequaln(txt_files(1).data,lvm_files(1).data)
ans = logical
1
isequaln(txt_files(2).data,lvm_files(2).data)
ans = logical
1
isequaln(txt_files(3).data,lvm_files(3).data)
ans = logical
1
Anyway, what do you want to do? Do you want to shift the data from file 1 and file 3 such that the big dips in the plots I created above are lined up with the big dip in the plot for file 2?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB 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!

Translated by