Visit my webpage www.cerilet.com
Top 5% contributor
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 3 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 4 years ago
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Asked 3 years ago
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 2 years ago
the problem seems quite simple but I cannot figure out how to implement it.
I have two logical arrays. In on...
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...
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...
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 2 years ago
Well, apparently I was wrong when saying that in another block it didn't get disconnected.
Anyway, I finally solved the probl...
Mathworks told me that it is not possible to instantiate blocks with "electrical" connections.
However, there is a way of doi...
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 ...
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) && ...
Answered 4 years ago
I am using _typecast_ to convert from double to uint8 and store some data in a file:
Asked 4 months ago
Following the first example in the _mesh_ documentation:
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;...
Asked 1 year ago
does anyone know why the IDE Link pane does not appear in my Simulink Model? I am using Code Composer Studio v5.
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...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries