photo

Salman Ahmed

Active since 2021

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 3
  • Revival Level 3
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Evaluate Simulink model at a given time vector
Hi Daniele, Assuming you wish to produce the simulation outputs at specified times, navigate to the model configuration setting...

3 years ago | 0

Answered
How to change arrow labels of simulink blocks
Hi Vibhu, You can programmatically rename the Simulink signal line names by first doing a global search for that signal name in...

3 years ago | 0

Answered
Get sample rate in a Matlab function block in Simulink
Hi Glenn, You could also use the following workaround to access the sample rate inside the MATLAB function block: coder.extrin...

3 years ago | 0

Answered
An error occurred while running the simulation and the simulation was terminated due to singularities in my Simulink model?
Hi Yernagu, This problem occurs oftenly. This is usually caused because of Inf or NaN output produced at a block. Set the diagn...

3 years ago | 0

Answered
How to save a Simulink scope as a .fig file without opening it (Command Window code)?
Hi Cory, From what I understand, you wish to export the scope viewer to a figure. There is no direct function for doing this, h...

3 years ago | 0

Answered
Index and combine datastores tables
Hi Russell, To combine tall arrays with different underlying datastores, it is recommended that you write the arrays (or index...

3 years ago | 0

Answered
Vectorization problem with assignments
Hi Marcos, You can use the following to vectorize your loop. cols = Vector2(vector1,1:dims);

3 years ago | 0

Answered
ibis-ami development training
Hi Andrey, Do have a look at the set of examples present in the documentation to help you get started. You can use the SerDes D...

3 years ago | 0

Answered
How to delete an element from a Simulink.SimulationData.Dataset
Hi Camille, You could use removeElement to delete an element. To remove the element from your Simulink.SimulationData.Dataset...

3 years ago | 0

| accepted

Answered
Model Data Editor - can't find create new data box
Hi Arthur, The model ex_arg_code_ref supplied as part of the example already has gainArg defined in the model workspace. You co...

3 years ago | 0

| accepted

Answered
Comparison tool in R2021b can no longer filter to 'show differences only'
Hi Daniel, I understand you wish to visualize the differences only while doing a comparison using visdiff. I have brought this...

3 years ago | 0

Answered
Build videos using every Nth image from original video
Hi Jim, Since you would like to select a Frame from the VideoReader object (vidObjIn) directly, you could use the read function...

3 years ago | 0

| accepted

Answered
Simulink Dimension Mismatch Error
Hi Bahaa, From my understanding this error has originated as you are trying to multiply the output of the mux which is a signal...

3 years ago | 0

Answered
Simulink/MATLAB error in akima interpolation
Hi Marco, In a MATLAB Function block, you can only use the subset of the MATLAB language and language features that are support...

3 years ago | 0

Answered
New MATLAB Answers filtering does not allow multiple selections
Hi Jonas, I have brought this issue to the notice of our developers. They will investigate the matter further.

3 years ago | 0

| accepted

Answered
Reinforcement Learning - Train Agent for Three-Lane Highway
Hi Christian, I would recommend going to the following resources to help you start with: Driving Scenario Designer Basics : I...

3 years ago | 0

Answered
How do I use a different random number seed in a for each subsystem?
Hi James, From my understanding, you wish to generate a random number with a different seed for each different iteration. I thi...

3 years ago | 0

Answered
Turn a Simulink model into a mex file
Hi Cedric, The rt_logging.h file is only used if you are logging data to a MAT-file. So it assumes the MAT-file logging option ...

3 years ago | 0

Answered
In Simulink, how to call the same subsystem several times to do a calculation?
Hi Udara, I am assuming you wish to modify your Simulink model to pass the outputs of it (HAL_HV_MON, HAL_HV_MON1, ...) to a s...

3 years ago | 0

| accepted

Answered
how to load mat file(trained neural ode) in simulink matlab function.
Hi Muhammad, You could try using the coder.load function that can be used to load the MAT files data at compile time and can be...

3 years ago | 0

Answered
Behavior of tab key in 2021b
Hi Nicolas, I understand that you wish to disable tab auto-complete options. This cannot be completely achieved (refer to this ...

3 years ago | 0

Answered
try to have simulink's stop time as a block
Hi Jorge, Assuming you want to stop the simulation conditionally, the best way to achieve this would be using a Stop Simulation...

3 years ago | 0

Answered
How to extract between a keyword the end statement in a code?
Hi Jeremiah, I understand that you are trying to extract between a keyword and end statement and the presence of end in comment...

3 years ago | 0

Answered
Sorting Elements of af 3D matrix in another Matrix with a condition
Hi Alex, From what I observe from your code is that you would like to iterate over and sort elements based on the condition def...

3 years ago | 0

Answered
how to fill a matrix using the rows of another matrix
Hi manar, From the comments, I understand that you wish to segregate your data into different cells whenever you hit peaks in y...

3 years ago | 0

Answered
Set colors for specific entries of heat map
Hi, From my understanding you wish to highlight specific cells in a heatmap but this is not a feature present currently with h...

3 years ago | 0

Answered
Error in Simulink - Derivative of state '1' in block at time 301.02267725 is not finite. The simulation will be stopped. There may be a singularity in the solution.
Hi Riya, This problem occurs oftenly. This is usually caused because of Inf or NaN output produced at a block. Set the diagnost...

3 years ago | 2

Answered
Initialize Simulink's "MATLAB System" block for codegen with unsupported codegen functions at "setup time"
Hi Jordan, From what I understand, you want to use functions like evalin in system objects with code generation. You can define...

3 years ago | 0

| accepted

Answered
How to implement regressionGP class in Simulink
Hi Holden, From my understanding, you would like to replicate the functionality of your MATLAB file in Simulink. The functional...

3 years ago | 0

Answered
Use exhaustive searcher in simulink model
Hi, You may try defining the function using coder.extrinsic in case the function is not supported. Try adding the following to...

3 years ago | 0

Load more