Jump to content

L Moretti

Members
  • Content Count

    25
  • Joined

  • Last visited

  • Days Won

    1

L Moretti last won the day on March 7

L Moretti had the most liked content!

About L Moretti

  • Rank
    Beginner

Profile Information

  • Country
    Italy
  • Are you University user?
    No

Recent Profile Visitors

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

  1. Hi Arnigaber, So are you able to run your models now? The modelica blocks require the Visual Studio Compiler to run, because they're compiled before the simulation starts. You can see that when you modify one of your modelica blocks. The simulation will not start immediately when you hit the start button, because the modifications you made on the modelica side have to be compiled. Lorenzo
  2. Hi Rodolfo, you should use Compose 2019.3! Lorenzo
  3. Hi Rodolfo, You can use the function sparse. For example if you have a full matrix you can convert it in this way: sparse(eye(6)) Or you can create a sparse matrix specifying the row & col index and the related value. For example: m = [1 4 10]; n = [ 2 6 8]; val = [1 3 8]; Matrix = sparse(m,n,val) Hope it helps, Lorenzo
  4. Hi Ivan, Unfortunately oml language doesn't support yet symbolic math. You can try to leverage Python-bridges provided by Compose though. Cheers, Lorenzo
  5. Hi Ludwig, I believe that the solution suggested by Ronald it's great. Anyway, this should fix the error you were experiencing: xlabel(Plotnames{1,1}); ylabel(Plotnames{1,2}); I have just replaced () with {}. Cheers, Lorenzo
  6. Hi Christian, maybe this 8 lines of code can help you: clc,clear,close all plotnames = cell(4,4); for ii=1:size(plotnames,1) for jj=1:size(plotnames,2) plotnames(ii,jj) = ['plot, row ',num2str(ii),' & column ',num2str(jj)]; end end plotnames Cheers, Lorenzo
  7. Hello Saransakthi, are you looking for something similar to this? Cheers, Lorenzo FFTzoom.oml
  8. 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
  9. 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
  10. 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
  11. Hi HenLopes, are you trying to convert a .m file into a .oml (Compose) file, by any chance? Cheers, Lorenzo
  12. Hi HenLopes, could you please post here something similar to what you're trying to read? Thanks, Lorenzo
  13. 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
  14. 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
×
×
  • Create New...