HOW TO IMPORT MATLAB DATA FROM Text files (* .txt)

2 次查看(过去 30 天)
Hello good day.
I have a text file with 8 columns.
I have a file in Matlab.
I want Matlab to take only the third column, then multiply it with a variable that is in the Matlab file.
How do I achieve this?
Greetings and thanks
TEXT FILE each column has 180 values
Elev. [deg.] Azim. [deg.] Abs(Gain)[ ] Abs(Cross)[ ] Phase(Cross)[deg.] Abs(Copol)[ ] Phase(Copol)[deg.] Ax.Ratio[ ]
------------------------------------------------------------------------------------------------------------------------------------------------------
-90.000 0.000 1.336e-01 8.497e-02 303.859 4.863e-02 312.490 1.378e+01
-89.000 0.000 1.340e-01 8.535e-02 301.531 4.867e-02 312.418 1.092e+01
-88.000 0.000 1.350e-01 8.632e-02 299.208 4.872e-02 312.284 9.094e+00
-87.000 0.000 1.367e-01 8.792e-02 296.909 4.876e-02 312.087 7.846e+00
-86.000 0.000 1.390e-01 9.016e-02 294.655 4.880e-02 311.826 6.952e+00
-85.000 0.000 1.419e-01 9.305e-02 292.465 4.883e-02 311.503 6.294e+00
Matlab file code example
AFSC=(C1*exp(((i*k*x1)*sin(TETA).*cos(PHI)))
How I multiply the third column in text file to the code in Matlab ???

采纳的回答

Victor Quezada
Victor Quezada 2018-12-6

更多回答(1 个)

Ricardo Gutierrez
Ricardo Gutierrez 2018-12-6
Thank you very much!!!

类别

Help CenterFile Exchange 中查找有关 Data Import and Export 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by