Help with function reading a file

1 回表示 (過去 30 日間)
Dylan Blosser
Dylan Blosser 2019 年 12 月 9 日
コメント済み: Deepak Kumar 2020 年 1 月 3 日
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 件のコメント
Deepak Kumar
Deepak Kumar 2020 年 1 月 3 日
what is your issue ?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by