Community Profile

photo

Sohil Shrestha


Last seen: 18 days ago Active since 2019

Statistics

  • Thankful Level 1
  • Explorer
  • First Review

View badges

Content Feed

View by

Question


Is there a way to programmatically get list of valid values/datatypes for Simulink block parameter?
Simulink Block Specific parameters documentation lists the values and/or datatype each parameter of the block accept. Is there ...

2 months ago | 1 answer | 0

1

answer

Question


Matlab static variable that can be modified by super class and sub class?
I have following structure where I have a superclass and two subclasses classdef A properties staticvar end...

2 months ago | 1 answer | 0

1

answer

Question


How to find if the Simulink model is used for code generation
Is there a heuristic or certain block parameter configuration that suggests if a Simulink model is used or configured for code...

7 months ago | 2 answers | 0

2

answers

Answered
How to programmatically know if a block is a sink block?
%Upon digging into some api , this is the solution I came up with. % I have not tested with all possible cases. % If there a...

9 months ago | 0

Question


How to programmatically know if a block is a sink block?
I have Simulink model. I want to know if each of the block inside my model is a sink block or not (or it belongs to a Sink Simul...

9 months ago | 3 answers | 0

3

answers

Question


Why is cyclomatic Complexity of Switch Block 2?
Switch Block has two possible outcomes: input 1 or input 3. The cyclomatic complexity of the block should have been 1 according...

1 year ago | 1 answer | 0

1

answer

Question


Does Simulink block metric includes count from custom library blocks
The documentation of Simulink Check Model Metric says Simulink block count Does not include links into MathWorks libraries, wh...

1 year ago | 0 answers | 0

0

answers

Question


Throw Error in TimerFcn
I want to throw an error when timer fires up . try timeout = timer('TimerFcn','error(''TIMEOUT OCCURED'');','StartDelay',...

1 year ago | 2 answers | 0

2

answers

Question


Is there a way to programmatically know if a model/block diagram is testbed ?
Similar to bdisLibrary, Is there a MATLAB API to check if a block diagram or model is a testbed or test harness?

1 year ago | 0 answers | 0

0

answers

Question


Does Simulink compiles a model when opening it?
I have a question regarding stages of compilation and simulation in Simulink. I read the documentation in here https://www.mathw...

2 years ago | 1 answer | 0

1

answer

Question


Trying to use 6 different shades of gray on stacked bar
Hello, I am trying to create a gray scaled stacked bar plot. I have set the bar.FaceColor = 'flat' and CData to different rgb t...

2 years ago | 0 answers | 0

0

answers