Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to get .TXT file from the figure in MATLAB

Status
Not open for further replies.

Nauman88

Newbie level 3
Joined
Jul 16, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
Hello Everybody. i am new here and also in this field (Bio-medical Engineering). I am using MATLAB and detected the R-R intervals but the problem i am facing now is how to get those R-R Detection in the .TXT file.
If some one knows how to do it, please help me.
Many Thanks in Advance :)
 

MATLAB has separate functions to write text into a .txt file

in = fopen('program.txt', 'wt'); // opens a file. (If the file is not already there, it will be created)
fprintf(in,'%s\n','text to be written'); //write the third parameter to the text file
fclose(in); // you need to close the file after you are done using it.

Good Luck. :)
 
MATLAB has separate functions to write text into a .txt file

in = fopen('program.txt', 'wt'); // opens a file. (If the file is not already there, it will be created)
fprintf(in,'%s\n','text to be written'); //write the third parameter to the text file
fclose(in); // you need to close the file after you are done using it.

Good Luck. :)


Thanks for your reply mate but i have detected the R-R intervals by setting the level of threshold, now i want to get the detected R-R interval values in the '.txt' format as a separate file, i don't want to add any text. so is this the way to get those values as in the '.txt' file ? i am sorry if my question looks silly. Remember i am the new one :(
 

Store the interval values in a variable say intVal.
then you make a small change in the above code
fprintf(in,'%i\n',intVal);

Hope this helps. :)
 
Store the interval values in a variable say intVal.
then you make a small change in the above code
fprintf(in,'%i\n',intVal);

Hope this helps. :)

Loads of Thanks for your kind help psurya :) ... it worked
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top