Jump to content
Sign in to follow this  
HenLopes

.oml file

Recommended Posts

Hi Lorenzo,

 

Yes sure.

It's a file combining a cell array 'Casename_Track' and a huge matrix 'Track_Stress_Matrix'.

Something like this.

Thank you very much for your help.

 

TestFile.PNG

Share this post


Link to post
Share on other sites

Clear! It's way easier!

Try to change the extension of the .m file! 

 

Just replace .m with .oml! And then you can open it directly in Compose!

 

Cheers,

 

 

Lorenzo

Share this post


Link to post
Share on other sites

Thanks Lorenzo.

It works for the file conversion.

 

My problem now is to invoke that file (.oml) inside the scripting code.

I already tried to type the name of the file on editor's window but unfortunately it doesn't work.

 

Do you know as well how to do that?

 

Any help would be greatly appreaciated.

 

Thank you.

 

 

Share this post


Link to post
Share on other sites

If I have not misunderstood what you're saying, this is due to the fact that the script you're calling is not a function.

 

Feel free to upload your script in the forum, or just the portion of it which is not working. In this way we can solve the problem more easily.

 

Thanks,

 

Lorenzo 

Share this post


Link to post
Share on other sites

Ok I explain better.

 

When for instance I want to read the content of  a .txt file in my scripting I just type something like this:

 

file = fopen ( ' nodes.txt'.'r');

nodes = textscan(fid, %d %f %f %f %f )

fclose(fid);

 

Now I want to read all data from my .oml file  as well.

 

What command I need to use to open my .oml file, that's my doubt?

 

For instance from MATLAB I know that when you need to call a (.m) file in your code you just type the name and the program automatically recognizes it.

 

Hope this make sense.

 

 

 

 

 

Share this post


Link to post
Share on other sites

Let me see if I get your point.

 

Let's assume that:

 

file = fopen ( ' nodes.txt'.'r');

nodes = textscan(fid, %d %f %f %f %f )

fclose(fid);

 

is my "reading.oml" file.

 

You have more ways to run it:

 

1) open it in the editor window and click on the run icon (top-left corner of Compose interface);

2) type its name in the Command window and press "enter"

3) call it from a master script. For this case look at the script "master.oml" in attached

 

Have I answered your question?

 

Cheers,

 

Lorenzo

 

P.S. to use the files in attached put them in the same folder. And check that the pwd of Compose is pointing at that folder.

master.oml

nodes.txt

reading.oml

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...