Passing .dat files as function parameter
Mostra commenti meno recenti
Hi All, I want to create a function that takes two .dat files as input. The output is not required, as it will be only graphs. the function is:
function y = reAdfiLe(file1, file2)
load file1;
load file2; %loading two files
amp1 = file1(:,2);
amp2 = file2(:,2); %taking 2nd column of files
a = max(amp1);
as I call this function
>>reAdfiLe(myfile1,myfile2)
it gives error "Undefined function or variable 'myfile1'." just cannot understand whats the matter.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Workspace Variables and MAT Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!