Help with function reading a file

7 vues (au cours des 30 derniers jours)
Dylan Blosser
Dylan Blosser le 9 Déc 2019
Commenté : Deepak Kumar le 3 Jan 2020
I want to query the user for what file they want to submit. Then I want the code to read the lines from AN18:AN11228 and K18:K11228 from the file that they enter then find the average of whatever numbers are within that criteria.
Here is what I have so far:
function [AGS,ALA]=BlosserD_Data20(File)
inputAGS=xlsread(File,'AN18:AN11228');
inputALA=xlsread(File,'K18:K11228');
AGS=mean(inputAGS);
ALA=mean(inputALA);
end
File=input('Enter file name: ')
[AGS,ALA] = BlosserD_Data20(File)
  1 commentaire
Deepak Kumar
Deepak Kumar le 3 Jan 2020
what is your issue ?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Files and Folders dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by