read a variable from .txt file

1 view (last 30 days)
shayma mohammed
shayma mohammed on 25 Aug 2014
Edited: per isakson on 25 Aug 2014
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

Accepted Answer

per isakson
per isakson on 25 Aug 2014
Edited: per isakson on 25 Aug 2014

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!