read a variable from .txt file

Hello i have this formula y= ((-0.0459*x./sqrt(x.^2-m^2))./(1-exp(0.0459*x./sqrt(x.^2-m^2)))).*sqrt(x.^2-m^2)
m is a variable (it's about 10000 numbers)saved in a file named psp.txt please how can i read it and use these numbers
i used this command fid=fopen('psp.txt','r'). to read file but i don't know what should i do to use these variable instead of m in this formula
With great thanks

Più risposte (0)

Categorie

Scopri di più su Data Import and Analysis 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!

Translated by