Questions tagged [simulink]

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems.

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems. It provides an interactive graphical environment and a customizable set of block libraries that let you design, simulate, implement, and test a variety of time-varying systems, including communications, controls, signal processing, video processing, and image processing.

Some useful links:

2638 questions
0
votes
1 answer

Sample sequence of points from continuous signal simulink

I have a Matlab function (created by me) that must be evaluated only at a given rate. I would like to sample the value of a signal, give to this function (discrete values) and then, the calculated output must be hold until the next value is…
0
votes
0 answers

Simulink Index out of bound - False error?

on simulink, I have this error : Index expression out of bounds. Attempted to access element 2. The valid range is 1-1 for this line of code in an embedded function, Simulink cannot access Point1(2) or Point2(2): midPoint= [(Point1(1) +…
Chewbaka
  • 69
  • 5
0
votes
0 answers

Encounter with a strange Mask initialization Command

So in one of the mask in the model i came across an initialization command that i don't understand. The logic is for an SR Flip Flop. That latches the output. It has 1 parameter that takes in the initial state for output 1(Output is o and…
Siddharth Kaul
  • 544
  • 5
  • 17
0
votes
1 answer

Simulink: Simulating using from file block. Choosing a variable start point

I have a control model in Simulink which consists of two blocks. One which takes some inputs and generates three signals, x,y,z as arrays (trajectory) and feeds them to the second block as reference for the control. I would like to be able to run…
0
votes
1 answer

Reading a Matrix "From Workspace" and insert the values in other variable through "to workspace"

I'm trying to read an array from the workspace through the "From Workspace" function by passing it in the "Matlab Function" block whose input must equal the output, finally the value should be entered in another "To Workspace" variable, as in the…
SrnLord
  • 111
  • 4
0
votes
1 answer

How to copy data from Simulink Powergui Load Flow Tool to Array in Matlab?

I have developed a process to semi-automate the Simulink Load Flow Tool to allow the Load Flow to continuously be computed for different Load values. Each time the Load Flow is computed I require the data to be copied from the Powergui Load Flow…
0
votes
1 answer

A3C on simulink model

I am currently running seperately my deep reinforcement learning algorithms on my simulink model. They are connected by a TCP/IP connection. Python sends action to simulink, simulink send environment values to python. git:…
0
votes
1 answer

How to create a Simulink executable which uses .mat file input

I have created a gas turbine model on simulink for my final year project for my engineering degree. However I need some help in converting it to a standalone executable, currently the standalone executable uses the inputs that were there when it was…
Rajeevx5
  • 37
  • 1
  • 7
0
votes
1 answer

Designing a WLan Receiver

I plan to model a Complete WLAN receiver for IEEE 802.11 b/g/n PHY Layer for completely detecting all the fields in the Packet. This experiment is for academic purpose only. I am seeking your guidance, how I can build such a model. Any ideas /…
Kiran
  • 6,858
  • 30
  • 95
  • 156
0
votes
0 answers

How to optimize a function existing as a embedded function block in simulink, part of MATLab, using fmincon?

function y = objfun(x) sim('modelprototype.slx'); y = Y(1); end It is in simulink embedded func block. Before that I ask for help, I will explain what I did and what I want; I had a function as a script in matlab. Having entered the…
0
votes
1 answer

Simulating a communication system in MATLAB

i am trying to plot the theoretical and the simulated BER curves using BERtool of this communication system : The simulated curve is a constant horizontal line all over the range and therefore it is not even comparable to the theoretical one. The…
John adams
  • 121
  • 6
0
votes
1 answer

How can I measure length of signal in simulink?

I have model with "matlab function block" in which I have recursive least square method. Recursive algorithm needs to know length of incoming signal in order to work correctly. But when I use command N=length(y) it returns me length N= 1. But I…
0
votes
1 answer

How to modify the mechanical input of a Simscape model during simulation?

I'd like to modify the physical input of my Simscape model during the simulation but I don't know how to do it. The mechanical translation block in the picture below is used to convert the rotational input into a translational movement (by mean of…
Getter
  • 509
  • 1
  • 4
  • 13
0
votes
1 answer

Reading a char array of an SFunction Parameter

I am having trouble reading a string (file name : 'aFile.csv') from SFunction parameter. The error I get doesn't make sense to me I am using MSVC++(2017). The error appears to come from ssGetSFcParam inside mxGetString Here is a snippet of the code…
Sam Gomari
  • 593
  • 2
  • 11
  • 27
0
votes
3 answers

How to efficiently threshold a matrix in SIMULINK (remove noise)

I am doing some optical flow and I have a matrix of velocities, however I would like to discard (replace with zero) the entries which are below a certain threshold. Is there a convenient block that does this on a matrix signal?
lms
  • 14,269
  • 12
  • 64
  • 113
1 2 3
99
100