How to export data from C++ to MatLab -


i have written c++ program outputs list of random numbers. asked export these numbers matlab in order produce histogram , other graphics. how can this? (i'm beginner; please specify files , steps need add). thank you.

here did matlab console (input.txt contains 3 integers values):

>> f=fopen('input.txt','rt')  f =       3  >> fscanf(f,'%d')  ans =          1234        23435          888  >> fclose(f)  ans =       0  >>  

to sum up:

f=fopen('input.txt','rt'); integerlist = fscanf(f,'%d'); fclose(f); 

for more details functions can use doc or help in matlab console:

doc fscanf fscanf 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -