can someone help me with this

Error using load Unable to read file 'repressilator_oscillations.dat'. No such file or directory
so this 'repressilator_oscillations.dat' should be text file with the corresponding matlab program or the corresponding oscillations figure. i am new at this, so sorry if my questions seems to be absurd.

5 commentaires

Ameer Hamza
Ameer Hamza le 18 Juin 2018
It shows that 'repressilator_oscillations.dat' is not present in the MATLAB path. Are you sure, it is present in MATLAB path?
Dev
Dev le 18 Juin 2018
actually i was trying to run a code i got from net. and got this error. What steps I need to do to create .dat file in MATLAB?
Ameer Hamza
Ameer Hamza le 18 Juin 2018
A .dat file contain some data. It will not be helpful if you randomly create some data file. You need to ask the author of the code to provide this data file.
Guillaume
Guillaume le 18 Juin 2018
@Devi,
Can you please stop spamming the forum with the same question. This is the 3rd question you've asked on the same subject.
Original question, with the full code is here.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 18 Juin 2018

0 votes

Your code is trying to read repressilator_oscillations.dat in whatever your current directory is, but there is no file by that name there. Either you used the wrong name or else it is in a different directory.
You might have done something like
dinfo = dir('data_files/*.dat');
filename = dinfo(1).name;
load(filename);
If you did something like that, it would not work, because the file is not in the current directory: it is in the directory data_files . More correct for this kind of code would be
datadir = 'data_files';
dinfo = dir( fullfile(datadir, '*.dat') );
filename = fullfile( datadir, dinfo(1).name) );
load(filename);

2 commentaires

Dev
Dev le 18 Juin 2018
actually i was trying to run a code i got from net. and got this error. What steps I need to do to create .dat file in MATLAB?
Stephen23
Stephen23 le 18 Juin 2018
Modifié(e) : Stephen23 le 18 Juin 2018
@DEVI MURALI: what is a .dat file? A list on Wikipedia gave me twelve possible applications that use .dat files, while another website showed me eleven different file formats. If you want help with this then please tell us
  • the exact file format specification, or the application that creates it.
  • a specific question about MATLAB, something that cannot be explained by reading the MATLAB documentation:

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Question posée :

Dev
le 18 Juin 2018

Commenté :

le 18 Juin 2018

Community Treasure Hunt

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

Start Hunting!

Translated by