Community Profile

photo

Danijel Domazet


Last seen: 28 days ago Active since 2020

Statistics

  • Thankful Level 2
  • First Answer
  • Revival Level 1

View badges

Content Feed

View by

Question


What is the real value of "single(my_variable)"?
My script reads a string value "0.001044397222448" from a file, and after parisng the file this value ends up as double precissi...

3 months ago | 2 answers | 0

2

answers

Question


Write 32-bit float Simulink variable to file?
I am running a Simulink sinulation. I'd like to capture a 32-bit float variable to file. It would be a simple binary raw file...

7 months ago | 1 answer | 0

1

answer

Answered
How do I tell MATLAB to use MinGW C++ compiler instead of MSVC?
Solution is here: https://www.mathworks.com/help/matlab/matlab_external/choose-c-or-c-compilers.html and works very easily. ...

11 months ago | 0

Question


How do I tell MATLAB to use MinGW C++ compiler instead of MSVC?
I just installed the MinGW C++ compiler add-on. When I run some Simulink simulation from the CygWin command line, MATLAB tries...

11 months ago | 1 answer | 0

1

answer

Question


MATLAB license for Jenkins automation server?
When using MATLAB only on an automation server for test builds and verifications, is the same full MATLAB license required? Or t...

1 year ago | 1 answer | 0

1

answer

Question


Computing balanced representation for state-space model?
I have the following state-space model parameters: A = [0.989923894 -116924.375; 4.34027786e-10 1]; B = [1;0]; C = [0.0100760...

1 year ago | 1 answer | 0

1

answer

Answered
S-Function BlockType
Try: s_blocks = find_system(model, 'SearchDepth', 1, 'BlockType','S-Function');

1 year ago | 0

Question


How to get port names for built-in blocks?
This is how I find port names in my Simulink model: function [portNames] = findOutputPortNames(obj) % Lists output port n...

1 year ago | 0 answers | 0

0

answers

Question


Speeding up the simulation?
I have a Simulink model which takes audio file at input, and produces another audio file at output. I am also running the mode...

1 year ago | 1 answer | 0

1

answer

Question


How to get output port name for builtin Delay block?
simBlockH = get_param(target_module, 'Handle'); handles = find_system(simBlockH, 'LookUnderMasks', 'on', 'FollowLinks', 'on', '...

1 year ago | 0 answers | 0

0

answers

Question


How to connect input to input programmatically (add_line)?
I use 'add_line()' to connect output to input, output from first block to the input of next block, in this case To File block (d...

1 year ago | 0 answers | 0

0

answers

Question


How to programmatically add a block from Audio Toolbox to Simulink?
I have added a Simulink "In File" block programmatically: add_block('simulink/Sinks/To File',...) How do I add a block from A...

1 year ago | 1 answer | 0

1

answer

Question


How to suppress warnings when running Simulink simulation programmatically?
I am running a Simulink simulation from my_sim.m MATLAB file: ... sim('rocket_sim'); fprintf('Finished. \n'); ... I am g...

1 year ago | 1 answer | 0

1

answer

Question


Changing model programmatically: discard changes and exit?
Hi, I programmatically change a model in Simulink, run the simulation, and exit. open_system(...) add_block(...) sim(...) ...

1 year ago | 1 answer | 0

1

answer

Question


How to set StopTime programmatically?
My model stop time is set to 5 seconds. I want to change that programmatically. open_system(test_model, 'loadonly'); set_param...

1 year ago | 1 answer | 0

1

answer

Question


"delete" does not find a file?
Why wouldn't this work: if isfile(filename) delete filename end filename is a char vector. File is not deleted, and I ...

1 year ago | 1 answer | 0

1

answer

Question


Calling m file from class?
I have a class A, and a file myinit.m. myinit.m contains many variable initializations which are needed by the class A. This...

1 year ago | 0 answers | 0

0

answers

Question


How to programmatically set To File block parameters?
Hi, I am trying to programmatically add To File block to existing Simulink model. open_system('myModel, 'loadonly'); add_blo...

1 year ago | 1 answer | 0

1

answer

Question


How to go from Simulink to embedded fixed-point DSP processor?
A library of audio algorithms is modeled, tested and verified in Simulink. It needs to go from this existing Simulink models dow...

1 year ago | 0 answers | 0

0

answers