27 total contributions since 2012

Professional Interests: Image Processing

Question

Using a bus input signal as a timeseries (to load from workspace)

Hello, I have a bus structure which is as follows: BUS A - ELEMENT - a (another bus) of dimension 2 - aa...

6 years ago | 1 answer | 0

Question

Multiple Istances of Referenced Model and its Effect on S-Function Builder Block

I want to be able to use multiple instances of my model. This model has got a legacy C function (which uses static variables) th...

6 years ago | 1 answer | 0

Question

SIMULINK testing a model that has bus input and output ports

I have a SIMULINK model that uses bus inputs and outputs as top level ports. When I am testing it, I don't know how to create a ...

6 years ago | 1 answer | 0

Question

SIMULINK holding previous values of a signal

I am trying to implement a pulse generator in SIMULINK that needs to know the previous 2 input values i.e. I need to know the pr...

6 years ago | 0 answers | 1

Question

Naming Problem that Occurs Repeatedly

Hello, My problem is specific to SIMULINK, model and code generation advisor, and Embedded Coder. I am using model referenci...

6 years ago | 0 answers | 0

Question

SIMULINK signals and parameters

Is there any way I can select my constants in SIMULINK to be a parameter or signal when moving to code generation? I vagulely...

6 years ago | 1 answer | 0

Question

Using DLLs and .OBJ files (built on one PC using visual studio) in SIMULINK model hosted by a different PC

I have a few DLL and OBJ files that I am calling from my model (using S-Function Builder). My development machine is working fin...

6 years ago | 0 answers | 0

Question

How can I make Embedded Coder Ignore Scope Blocks when Simulating and Generating Code?

I have got some inputs in my model that are passed via the environment controller i.e. the test inputs will be for simulation an...

6 years ago | 0 answers | 0

Question

Effect of tunable/configurable parameters in a masked subsystem when using Embedded Coder

I have a masked subsystem containing several tunable parameters. There is a stage where my model will have to be code-generated ...

6 years ago | 0 answers | 0

Question

Testing large-scale models in SIMULINK

We are creating a synthetic envrionment where all our subsystems are software models (i.e. no actual physical system is present)...

6 years ago | 2 answers | 0

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

6 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 years ago

Question

Problems with step size in SIMULINK model

I am having problems in my models where the delay is a multiple of 0.5. It seems that due to rounding arithmetic, I am losing pr...

6 years ago | 0 answers | 0

Question

SIMULINK model simulation with variable and fixed step size

Hello, I have a model that has an internal 0.5s delay that I need to check in my simulation. The delay is done by a block whi...

6 years ago | 0 answers | 0

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

6 years ago

Question

Unit-Testing SIMULINK models using basic MATLAB and SIMULINK functionality

I have a set of mixed-complexity SIMULINK models that I need to perform unit tests on. I know that Mathworks provides a test fra...

6 years ago | 1 answer | 0

Question

Modelling a data storage that would hold previous values

Hello, I have a subsystem which requires two 1-bit values to be held or overwritten based on certain conditions. This subsyst...

6 years ago | 0 answers | 0

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Question

Implementing a customised counter in SIMULINK using basic blocksets

I am trying to implement a counter logic in SIMULINK where in1, in2 are inputs out1 is the output if in2 = ...

6 years ago | 1 answer | 0

Question

Trouble understanding the Code Generation Advisor Messages

*My understanding about SIMULINK advisor* SIMULINK advisor is there so that modellers do not make silly mistakes that could c...

6 years ago | 1 answer | 0

Question

A resettable Delay in SIMULINK

Hello, I am trying to implement a logic from its timing diagram. I have a signal that will follows the input n seconds after ...

6 years ago | 2 answers | 0

Question

Problem using SIMULINK coder

I have MATLAB and SIMULINK trial product with SIMULINK coder and cannot seem to get the SIMULINK coder to generate C/C++ code fo...

6 years ago | 1 answer | 0

Question

Trouble Installing MATLAB SIMULINK R2013 Trial

Hello, I have managed to receive a trial version of MATLAB and SIMULINK R2013 and downloaded the necessary files to start the...

6 years ago | 1 answer | 0

Question

C/C++ wrapper to invoke SIMULINK model/libraries in external software designs

Is it possible to use C/C++ wrapper functions to call SIMULINK models in an external environment such as Visual Studio or eclips...

6 years ago | 1 answer | 1

Question

How does the "Probe" block work

When I am probing something, surely I will like to have the value of it seen first. In SIMULINK, the probe block shows everythin...

6 years ago | 0 answers | 0

Answered

image to an array

Simply do this targetImg = imread("path"); targetImg = targetImg(:); % You can take a transpose too ...

image to an array

Simply do this targetImg = imread("path"); targetImg = targetImg(:); % You can take a transpose too ...

7 years ago | 0

Question

Avoiding FOR loops to select a region in matrix and minimise computation time

Hello, I am trying to write a cross-correlation script where I need to slide my template across all rows and columns in ...

7 years ago | 1 answer | 0