Visit my webpage www.cerilet.com
Top 5% contributor
Well, I finally got the answer. It seems it changed in newer Matlab versions. I am using 2014a.
The problem was that I was us...
Answered 8 months ago
Well, apparently I was wrong when saying that in another block it didn't get disconnected.
Anyway, I finally solved the probl...
Answered 11 months ago
Mathworks told me that it is not possible to instantiate blocks with "electrical" connections.
However, there is a way of doi...
Ok, I found it. You can change it by doing right click on the background -> canvas color -> _choose one_.
It would be nice to...
Answered 1 year ago
Kaustubha gave me a clue to get it working.
The thing how I did it is:
1- In Simulink copy the code from the e...
Ok, job done.
I used the _submatrix_ block for the inputs and the _concatenate_ block for the outputs.
Using the _submatri...
Ok, I solved the problem isolating the _sine_ block from the _M-function_ block and changing what the error proposes *only* for ...
Answered 2 years ago
I have a GUI with 3 axes. Before plotting the data the three functions axesX_ButtonDownFcn(...) work, but when I plot the...
Asked 2 years ago
This is the code I have and it works, but maybe it is not efficient:
for i = 2:length(A) - 1;
if A(1,i) ~= A(1,i-1) && ...
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
I have a variable stored in _handles.switches_.
I get into a callback function. I change this variable and at the end ...
I have a matrix quite big (A < 23 x 250000 >). I want to evaluate the first row A(1,:) and eliminate the columns where...
I have a script in Matlab where I use Inf and NaN entities. I used Matlab Coder to generate C-code.
The problem ari...
Asked 6 months ago
the problem seems quite simple but I cannot figure out how to implement it.
I have two logical arrays. In on...
Asked 11 months ago
I have an error and I don't know how to solve it. There are several errors:
- Dimension 1 is fixed on the left-hand side but...
Asked 1 year ago
I am building a general block which needs and generates several signals.
The main idea is to connect one block to the ...
I am trying to get the number of the cell with the maximum value of a vector.
I know to do this in matlab...
does anyone know why the IDE Link pane does not appear in my Simulink Model? I am using Code Composer Studio v5.
Asked 9 months ago
I am using a _ramp_ block in Simulink driven into an m-function. I am checking the signal every time the m-functi...
I have a subsystem. In the mask I added a checkbox in order to change the output of this block.
There are tw...
I have a vector:
v = [1 0 0 1 1]
I got another index vector that says me which of these values have to be chan...
I want to set the background of the Simulink desktop/workspace to black or any other dark color. The thing is that I am p...
I am writing a mask help in html for a subsystem block. I can access the image by using:
I am using an embedded Matlab function inside a subsystem mask in Simulink, which is taking from a mask the size of a vec...
I have a subsystem which has a Matlab function. This subsystem has a parameter which specifies the size of an input vecto...
It is a simple question but I've been looking for a solution without luck!
Let's say I have this vector:
v = [1 2 3]
I am mounting a three-phase converter using the SimPowerSystems library which has a lot of cells. These cells have IGBTs and Dio...
I'm using an M-function in simulink and checking the execution period of it I realized that is variable. It can vary from...
I am using a _sine_ block and an _M-Function_. Everything was working fine yesterday but I don't know if I changed something in ...
I want to generate a sine which amplitude and delay is changing during a simulation.
From this formula:
out = M * ...
Join the conversation