Question

New Matlab release vs updates

Hi, I saw that Matlab R2020b is available. However, I just made the update 6 for my version R2020a. My question is : is Matlab...

environ un mois ago | 1 answer | 0

Question

Coder varsize unbounded second dimension

Hi, I am reading on the Matlab help about coder.varsize. In particular, I read that Declare Variable-Size Array with a Mix o...

5 mois ago | 1 answer | 0

Question

Function handles and coder

Hi, I have a very generic question. I have a matlab function "myfunction", and I would normally pass to that function a functi...

5 mois ago | 1 answer | 0

Question

Matlab coder and tested mex file

Hi, I am trying using Matlab coder to generate a mex file. I get an error during "run mex file with test function". The strang...

6 mois ago | 0 answers | 0

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...

6 mois 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...

6 mois ago | 0 answers | 0

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 ...

6 mois 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...

8 mois 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 ...

9 mois 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...

9 mois 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...

9 mois 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...

11 mois 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...

plus de 2 ans 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...

presque 3 ans 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 ...

presque 3 ans 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...

environ 3 ans 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 ...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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 ...

plus de 3 ans 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...

plus de 3 ans 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; ...

plus de 3 ans 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 ...

plus de 4 ans 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...

plus de 4 ans 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...

environ 6 ans 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...

plus de 6 ans 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 ...

plus de 6 ans 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...

plus de 6 ans 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...

plus de 6 ans 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...

presque 7 ans ago | 1 answer | 0