how to form output from this given data

i have a combination of data
column1 column2
3 75
4 15
5 20
6 10
7 00
i my program i have given two inputs for gettings two column of data
enter column 1 data
enter column 1 data
for example i give as 6 and 10
i will get output as 0.6 97.5 0.003
for example i give as 4 and 15
i will get output as 0.9 95.5 0.02
these inputs should not given manually...i need it automaticaal to be done and produce output ...for those data ,please tell how to process

4 commentaires

Wayne King
Wayne King le 29 Oct 2011
How exactly from the example you gave:
3 75 4 15 5 20 6 10 7 00
does one produce from 6 and 10
0.6 97.5 0.003
Fangjun Jiang
Fangjun Jiang le 29 Oct 2011
After posting your question, read it again to see if it makes sense at all.
Naz
Naz le 29 Oct 2011
Yeah, I don't get it neither.
FIR
FIR le 31 Oct 2011
Fangjun the first is error rate the second is accuracy and third is bit stream error,it may be for any combination i just gave an example,it ma be a 3 20,3 10,4 10 ,4 00 etc

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 31 Oct 2011

0 votes

importdata() or textscan() to read the stored input data in to a matrix, and then loop around the entries making the calls you need.

1 commentaire

FIR
FIR le 31 Oct 2011
walter can u send that code for that loop process please

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by