Jump to content

L Moretti

  • Content Count

  • Joined

  • Last visited

About L Moretti

  • Rank

Profile Information

  • Country
  • Are you University user?

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. L Moretti

    writing a text file from compose

    Hello Saransakthi, are you looking for something similar to this? Cheers, Lorenzo FFTzoom.oml
  2. L Moretti

    .oml file

    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
  3. L Moretti

    .oml file

    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
  4. L Moretti

    .oml file

    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
  5. L Moretti

    .oml file

    Hi HenLopes, are you trying to convert a .m file into a .oml (Compose) file, by any chance? Cheers, Lorenzo
  6. L Moretti

    .oml file

    Hi HenLopes, could you please post here something similar to what you're trying to read? Thanks, Lorenzo
  7. L Moretti

    Add colorbar to 3D plot

    Hi Henrique, you can access some properties through get(gca) or get(gcf) and then change them through set(gcf,'propertyname','value') or set(gca,'propertyname','value'). Cheers, L
  8. L Moretti

    writing a text file from compose

    Hi Saransakthi, write a .txt file from Compose is as simple as this: clc,clear,close all fid = fopen('newtxtfile.txt','w'); fwrite(fid,'this is a .txt file'); fclose(fid); What do you have to write? Cheers, L
  9. L Moretti

    Add colorbar to 3D plot

    Hi, check this script! Cheers, L ColBar.oml
  10. L Moretti

    Open and Reading all the data in a txt file

    Hi, See if this script can help you. I am using textscan. Cheers, Lorenzo reading.oml nodes.txt
  11. L Moretti

    Add colorbar to 3D plot

    Once you plot in a 3D space (for example using surf function) x=[0:0.1:2*pi]; y=x; z=sin(x')*cos(y); s=surf(x, y, z) If you add legend() to your script you will add a colorbar, as here shown:
  12. L Moretti


    Hi Saransakthi, with the following script you can see how filtering is done in Compose. And you can afterwards replicate it in your script. Cheers, Lorenzo filtering_demo.oml
  13. It's possible to launch Activate in batch from Compose and eventually get data back to Compose (for example .MAT file) once that Activate run. In this way we can combine the key capabilities of Activate (easy-modeling of systems) and Compose (heavy Post-Processing)! Look at this example! Here is what you need to do: 1) change the extension from .txt to .bat 2) in the .bat file insert the right path of "Activate_batch.bat" and "Slave2019.scm " in your computer 3) Run "Master.oml" Activate Batch.zip
  14. L Moretti

    Calculate the sum of a series

    Hi Dung, you can try this: clc, clear Sum = 0; for k=1:100000 Sum = 1/k^2 + Sum; end
  15. L Moretti

    Unknown value using compose

    Hi Arul, you can try this script. find_zero.oml