Jump to content

L Moretti

Moderators
  • Content Count

    33
  • 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
    Advanced Member

Profile Information

  • Are you University user?
    No

Recent Profile Visitors

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

  1. Hi, it is possible!!! For example if you have a script "MyFile.oml" and you want to encrypt it, you can type in the Command Window: encryptfile('MyFile.oml', 'MyFile.omc') This command generates an encrypted file: 'MyFile.omc'. (.omc is the extension of encrypted files) Cheers, Lorenzo
  2. Hello Joao, I could not reproduce your issue. Can you post your .scm model as well? Thanks, Lorenzo
  3. Hello CLervick, this feature is not yet available, but you can still run portion of your script. To run a portion of your script: - highlight it - right click - Run Selection Hope it helps, Lorenzo
  4. Hello Debdatta Sen, I think the issue is in what is contained in the list: tuples. Tuples are not supported. You can look at the supported Python DataTypes in the help page. Here a screenshot: Regards, Lorenzo
  5. FREE Altair Compose Notebook: An Introduction to System Dynamics and Controls using Altair Compose (Click Here) WHAT IS ALTAIR COMPOSE NOTEBOOK? The Altair Compose Notebook is an environment where you can develop interactive documents, mixing text, pictures, equations, and editable scripts. · For Academia: an application to make teaching more efficient and fun · For Professional: a tool to create interactive document that you can share across your organization · For Everyone: an environment to develop and present your projects WHAT WILL YOU LEARN FROM THIS NOTEBOOK? In this first notebook we talk about System Dynamics and Controls. Our aim is to provide you with all the basic knowledge you will need to work on your projects or deepen your studies. We will cover: 1. System Dynamics 2. Continuous Dynamics 2.1. System Analysis 2.2. Control Theory 3. Discrete Dynamics The theoretical explanation will be integrated by practical examples and applications, that will be developed leveraging Compose built-in functions (in particular the ControlSystem Library). MORE RESOURCES Also a .pdf version is available. CLICK HERE to download the E-book: An Introduction to System Dynamics and Controls using Altair Compose
  6. Hello Rok, There are also APIs connecting Compose and Flux. You'll find some explanation in the attached document. Lorenzo 03_HowTo_DriveFluxWithCompose.pdf
  7. Hello Debdatta, you can use the user defined function (attached to this reply) with this syntax: [AmpFFT,PhFFT,f] = FFTeval(s,Fs); s: your signal values Fs: sampling frequency AmpFFT: apmlitude of the single sided spectrum PhFFT: Phase of the single sided spectrum f: frquency vector you can then plot your results: figure() plot(f,AmpFFT) figure() plot(f,PhFFT) Of course you can also apply windows to your signal. There are many built windows ready to be used. Your script will be: w = hann(numel(s),'periodic'); %window s = s .* w; % windowing [AmpFFT,PhFFT,f] = FFTeval(s,Fs); Other windows you can use: hamming, kaiser, blackman... (just look inside the SignalProcessing library) Hope it helps, Lorenzo FFTeval.oml
  8. Hello Rodolfo, Can you tell us how big and "sparse" are your matrices? And what is your application? Thanks, Lorenzo
  9. 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
  10. Hi Rodolfo, you should use Compose 2019.3! Lorenzo
  11. 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
  12. Hi Ivan, Unfortunately oml language doesn't support yet symbolic math. You can try to leverage Python-bridges provided by Compose though. Cheers, Lorenzo
  13. 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
  14. 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
×
×
  • Create New...