Community Profile

# Dani Tormo

### Universitat Politecnica de Valencia

Active since 2012

#### Content Feed

View by

Question

How to avoid error calculation going to infinity when dividing by near-zero values?
Hello, I am calculating the relative error between two signals using the next equation: relative_error(i) = abs((measure...

meer dan 5 jaar ago | 1 answer | 0

### 1

Is it possible to save the state of a simulation and launch Simulink from there instead of from T = 0?
Ok, I could finally find it. This is possible using SimState. It is explained <https://fr.mathworks.com/help/simulink/ug/savi...

ongeveer 6 jaar ago | 1

| accepted

Question

Is it possible to save the state of a simulation and launch Simulink from there instead of from T = 0?
Hello, I am running a quite slow simulation. I need the system to be in steady state (that is at t = 1 second) and then I mod...

ongeveer 6 jaar ago | 1 answer | 1

### 1

Question

Why in Simulink a Matlab function block changes its output when changing the solver?
Hello, I have in Simulink a Matlab function block with some equations written inside. The problem comes when I change the ...

bijna 7 jaar ago | 1 answer | 0

### 1

Question

How to invert the function typecast?
Hello, I am using _typecast_ to convert from double to uint8 and store some data in a file: fwrite(fid,typecast(double(da...

bijna 7 jaar ago | 1 answer | 0

### 1

Question

Why does appear in a 3D mesh plot lines that should not be there?
Following the first example in the _mesh_ documentation: figure; [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps;...

bijna 8 jaar ago | 1 answer | 0

### 1

Question

Inf and NaN entities in C-code when using Matlab Coder
Hello, I have a script in Matlab where I use Inf and NaN entities. I used Matlab Coder to generate C-code. The problem ari...

meer dan 8 jaar ago | 1 answer | 1

### 1

Question

Matlab Coder ERROR: Dimension _ is fixed on the left-hand side but varies on the right.

meer dan 8 jaar ago | 0 answers | 0

### 0

IDE Link pane does not appear in Configuration Parameters (Matlab 2014a)
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...

meer dan 8 jaar ago | 0

| accepted

Question

Why is the "echo" command not recognized when I Build and Execute a Simulink Model for a Texas Instruments Code Composer Studio v5.1 Target Configuration?
When I use Embedded Coder to Build and Execute code for my development board, an error pops up as soon as the code is being exec...

meer dan 8 jaar ago | 0 answers | 1

### 0

Question

Error when trying to run a PIL simulation
Hello, this is the error I got: An error occurred while creating an instance of connectivity configuration class "tic2000...

meer dan 8 jaar ago | 0 answers | 0

### 0

Question

IDE Link pane does not appear in Configuration Parameters (Matlab 2014a)
Hi, does anyone know why the IDE Link pane does not appear in my Simulink Model? I am using Code Composer Studio v5. Is it...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

Error when compiling a Simulink model using CCSv5
Hello, I have got this error when trying to compile a model for the Texas Instruments F28069 using Embedded Coder: ### Bu...

meer dan 8 jaar ago | 1 answer | 0

### 1

Simulink to CCS5 for the processor F28069
Hello Suresh, here you have a tutorial on how to go through that process. Mind it is for the F2802X, just look for the approp...

meer dan 8 jaar ago | 0

Question

A ramp block going backwards?
Hey people! I am using a _ramp_ block in Simulink driven into an m-function. I am checking the signal every time the m-functi...

meer dan 8 jaar ago | 1 answer | 0

### 1

Question

Tutorial to implement a Simulink model into a Texas Instruments control board?
I am looking for a tutorial on how to generate and run a Simulink model (or Matlab code) in a Texas Instruments control board an...

bijna 9 jaar ago | 1 answer | 0

### 1

Question

How to use invert values of a logical array
Hello people, the problem seems quite simple but I cannot figure out how to implement it. I have two logical arrays. In on...

bijna 9 jaar ago | 2 answers | 1

### 2

Subsystem output disconnected automatically before running simulation
Well, apparently I was wrong when saying that in another block it didn't get disconnected. Anyway, I finally solved the probl...

bijna 9 jaar ago | 0

| accepted

Question

Subsystem output disconnected automatically before running simulation
Hello people, I have a subsystem. In the mask I added a checkbox in order to change the output of this block. There are tw...

bijna 9 jaar ago | 1 answer | 0

### 1

It is possible to instantiate a Simscape block?
Mathworks told me that it is not possible to instantiate blocks with "electrical" connections. However, there is a way of doi...

bijna 9 jaar ago | 0

| accepted

Question

Is it possible in Simulink to compile an m-function and use it without the simulink coder license?
Hi people! I was wondering if I can get rid of using the Simulink Coder license when running some models in which I have an m...

ongeveer 9 jaar ago | 1 answer | 0

### 1

Question

I have an index vector that I have to change and I want to change the values of them
Hi all! 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...

ongeveer 9 jaar ago | 1 answer | 0

### 1

Is it possible to change Simulink workspace colors?
Ok, I found it. You can change it by doing right click on the background -> canvas color -> _choose one_. It would be nice to...

meer dan 9 jaar ago | 5

| accepted

Question

Is it possible to change Simulink workspace colors?
Hi! 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...

meer dan 9 jaar ago | 3 answers | 2

### 3

Question

In the subsystem mask help in Simulink, how to access pictures in the same folder as the model?
I am writing a mask help in html for a subsystem block. I can access the image by using: <img src="C:\Users\....\mask_help\i...

meer dan 9 jaar ago | 1 answer | 0

### 1

Question

ERROR: Dimension _ is fixed on the left-hand side but varies on the right. How to solve this?
Hi! I am using an embedded Matlab function inside a subsystem mask in Simulink, which is taking from a mask the size of a vec...

meer dan 9 jaar ago | 1 answer | 0

### 1

Question

How to use variables in a subsystem mask
Hi! I am working on a subsystem mask that changes its outputs depending on a popup. The thing is that I have to know which wa...

meer dan 9 jaar ago | 0 answers | 0

### 0

Question

How to protect an Embedded Matlab Function in Simulink?
Hi, I have a subsystem which has a Matlab function. This subsystem has a parameter which specifies the size of an input vecto...

meer dan 9 jaar ago | 1 answer | 0

### 1

How to protect an Embedded Matlab Function in Simulink?
Finally! 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...

meer dan 9 jaar ago | 0

| accepted

Question

How to invert the index of a vector in Simulink?
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] A...

meer dan 9 jaar ago | 1 answer | 0