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...

environ 6 ans 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...

environ 6 ans 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 ...

environ 6 ans 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...

environ 6 ans 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...

environ 6 ans 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...

environ 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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 ...

plus de 6 ans 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)...

plus de 6 ans 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 ...

plus de 6 ans 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:...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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 = ...

plus de 6 ans 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...

plus de 6 ans 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 ...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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 ...

environ 7 ans 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 ...

plus de 7 ans ago | 1 answer | 0