Question

Vectorization and a strange result

Hi, I am struggling since few hours with a vectorized operation. I have some vector quantities, and I wanted to vectorize. I p...

casi 2 años ago | 1 answer | 0

Question

Matlab coder java.awt.AWTEventMulticaster.hierarchyChanged(AWTEventMulticaster.java:498)

Hi, I am running the Matlab Coder to generate a mex function. When calling the testing function, that should "exercise" the mex...

casi 2 años ago | 0 answers | 1

Question

Axis: no labels but grid on

Hi, I have a simple 3D plot, see figure. I would like to remove the labels on the axis, but I would also like to keep the grid ...

casi 2 años ago | 1 answer | 0

Question

Integral2 warning: minRectSizePass

Hi, I am using the integral2, specifally the tiled integral, and I get this warning Warning: Reached the minimum rectangle siz...

alrededor de 2 años ago | 1 answer | 0

Question

Generate code: source code or mex file ?

Hi, it has only been a few days since I am dealing with mex files. I am using Matlab coder. I can convert my original m files ...

alrededor de 2 años ago | 1 answer | 0

Answered

How to open .mexw64 file with Matlab?

Hi, maybe I can help you, because I came across this post when looking for "how to open a mex file". Now I understood that is a...

How to open .mexw64 file with Matlab?

Hi, maybe I can help you, because I came across this post when looking for "how to open a mex file". Now I understood that is a...

alrededor de 2 años ago | 0

Question

How to use a generated MEX function?

Hi, I am new to MEX functions, and I am learning about them since ... today! So, I have a matlab function, and I generated th...

alrededor de 2 años ago | 1 answer | 0

Question

Findpeaks: find the interpolation points for the width with the x axis

Hi, I am using the function "findpeaks" to find the peaks and their widths for a given signal. It works very nice, but I would...

más de 2 años ago | 1 answer | 0

Question

PWM signal generator and pulse rise time

Hi, I want to simulate a three-phase inverter. I have seen that Simulink offers the block called PWM generator (2-level) and th...

alrededor de 4 años ago | 1 answer | 0

Question

Discretizing the PWM Motor Drive: example in the help of Matlab (Simulink) not working

Hello, I was running the example for PWM Motor Drive as provided in the Matlab help page here <https://se.mathworks.com/help/ph...

más de 4 años ago | 0 answers | 0

Question

Clustering of data using k-means

Hello, I have a vector with data and, when I plot them, they divide into four patterns, as you can see in the figure (the 2 of ...

más de 4 años ago | 0 answers | 0

Question

Connections in Simulink (no arrows but squares)?

Hi, I opened the Matlab test file power_pwm and wanted to use the induction motor block in my file. However, the induction moto...

más de 4 años ago | 1 answer | 0

Question

How to delete all the scopes in Simulink?

Hi, in a Simulink model, I have used "Create and connect viewer" to see the signal in a specific point. I attach a snapshot to ...

casi 5 años ago | 2 answers | 0

Question

What can I write in a MATLAB function block in Simulink?

Hi I am working with Simulink. I wrote a function in Matlab that basically does a circular shift, and I wanted to put it into S...

casi 5 años ago | 2 answers | 0

Question

Elements of the input after a sum block

Hi, I have a Simulink model that contains a feedback. After the feedback, I should do some discrete convolution on the input. T...

casi 5 años ago | 1 answer | 0

Question

How does a feedback work in Simulink at the Solver level

Hi, I would like to understand how does the solver work in Simulink when I have a feedback. Let's assume I have a really easy ...

casi 5 años ago | 1 answer | 0

Question

How to extract column data in Simulink?

Hi, I have been working with Simulink just for few days. I have a Discrete State Space system. My input is defined in the "Mod...

casi 5 años ago | 1 answer | 0

Question

Variable Integer delay block

Hi, I am not so familiar with Simulink so I hope someone can help. I have a signal that is an impulse, and I want to delay it; ...

casi 5 años ago | 1 answer | 0

Question

Interface between simscape components and specialized technology block

Hi, I have the example from Mathworks here <https://se.mathworks.com/help/physmod/sps/ug/build-a-simple-three-phase-model.html ...

casi 6 años ago | 2 answers | 0

Question

Simscape component library vs specialized technology library

Hi, what are the pro and cons of the two libraries ? In particular, which one should I choose if I want to customise the model...

casi 6 años ago | 1 answer | 0

Question

Matrices with Polynomial Entries functions

Hi, I was wondering if Matlab has routines in order to compute the inverse of a Matrix with Polynomial Entries. I have not fo...

más de 7 años ago | 2 answers | 0

Question

Product of two real numbers gives (sometimes!) a complex number?

Hello, I am running some tests. I have a vector called "Test" with the following values: -8.886108641008270e+10 + 0.00000...

casi 8 años ago | 1 answer | 0

Question

Computational time evaluation over different computers

Hi, I have the following problem. I built 2 functions: one should be faster, and let's call it F1, and another one should be ...

casi 8 años ago | 2 answers | 0

Question

tic toc inside a timeit

Hi, I have a function "test". Inside this test function, I have a for loop that goes from 1 to N. Since I want to know the av...

casi 8 años ago | 2 answers | 1

Question

MatlabR2014b no more circle market type in plot

Hi, I had the following plot plot(A(i,j),'linestyle','o') that was perfectly working on Matlab R2013b. I have installe...

casi 8 años ago | 2 answers | 0

Question

IFFT and FFT user guide ?

Hi, I am working now both with IFFT and FFT. It is obvious that you need to know what are you doing, but I am wondering wh...

alrededor de 8 años ago | 1 answer | 0

Question

IFFT usage from a frequency signal to a time domain

Hi, I know that there are a lot of questions about this function, but I have not found an answer that can fit to me. I hav...

alrededor de 8 años ago | 0 answers | 0