Réponse apportée
How to connect 2 different air stream in simscape pneumatic
Hi Xavier, I don't believe there's a capability to mix two gases. You can calculate the approximate properties manually and ...

plus de 8 ans il y a | 0

Réponse apportée
I am trying to use the spectrum analyzer in Simulink to study a distorted signal. However, every time i change the discretization time of the powergui block, it gives me different (a huge difference) results. So how do I choose the sampling time?
Hi Danny, The sampling time for spectrum analysis should ideally be same as the sampling time of the actual signal to be anal...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Greybox nonlniear estimation model
Hi Imisi, If you already know the dependence of OCV on time, you can definitely pass it as a parameter. However, as time is a...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
greybox linear model error
Hi Imisi, In your code below function [A,B,C,D] = batteryeq_lin(T1,T2,C1,C2,Cnom,R0,Ts) A=[-1/T1 0 0;0 -1/T2 0;0 0 0]; %...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
In ssm (state space model), how can we indicate the same unknown parameters in coefficients matrix?
Hi Jialin, I understand that you would like to impose constraints on unknown parameters in ssm. You can use the "ParamMap" me...

plus de 8 ans il y a | 1

Réponse apportée
How can i plot the intensity of each row in an image?
Hi Amelia, I am assuming you have a 2-dimensional Image I. You can directly use the value in the image matrix to plot the int...

plus de 8 ans il y a | 0

Réponse apportée
XML-Import and then finding an attribute and saving it in a matrix
Hi Mueller, I understand that you would like to obtain numbers from a cell string after finding certain pattern in string. Yo...

plus de 8 ans il y a | 0

Réponse apportée
Coloring the largest component with different color than others
Hi Sultan, You can use the method below to achieve your use-case. image = zeros(size(biggest,1),size(biggest,2),3); N...

plus de 8 ans il y a | 1

Réponse apportée
How can I draw a circle with centre lines and then rotate it?
You can use the following method to draw lines inside a circle and rotate/translate them. radius = 5; center = [10 15...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How to redefine waypoints for the desired path for the robot?
Hi Arun, I understand that you would like to update the waypoints of the controller during simulation. You can achieve this b...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
National Instruments USB 6210 does't work in Simulink, Analog Input Block
Hi Uriel, In R2015b, Data Acquisition Toolbox Simulink Blocks support only Legacy Interface, that too on 32-bit MATLAB. You c...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
In the antenna tool box, how does the EHfields function calculate the fields?
Hi John, Calculation of E and H fields of an antenna depends on it's properties like geometrical shape, orientation etc. You ...

presque 9 ans il y a | 0

Réponse apportée
Object correct labeling when it is within another object
You can use the function "inpolygon" to check if one polygon lies inside the other. <http://www.mathworks.com/help/matlab/re...

presque 9 ans il y a | 0

Réponse apportée
ncdisp displays the netcdf file but cannot open with netcdf.open
Hi MelMo, It looks like the error is generated by the command "netcdf.getVar" function at line 9 of "tryingnetcdffiles" scrip...

presque 9 ans il y a | 1

Réponse apportée
Read rotary encoder data from Arduino
You can use the functions like <https://www.mathworks.com/help/supportpkg/arduinoio/ref/readdigitalpin.html readDigitalPin> to ...

presque 9 ans il y a | 0

Réponse apportée
Import Avi Files into Matlab on Mac
I think MATLAB relies on Platform APIs to read a file using VideoFileReader. If Quick Time can't open the file on your macOS, yo...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Fitting a Step/Stair Function to data...
Hi Kylie, You can follow the approach presented in this File-exchange submission to fit curves to data with a sudden discont...

presque 9 ans il y a | 0

Réponse apportée
Removal of RT_MODEL variables in code generation
Hi byungkeuk, Code Reusability allows you to receive model data by function arguments. To do so, it creates a real time model...

presque 9 ans il y a | 1

Réponse apportée
How to use OpenCV in a C++ S-Function?
Hi Saul, The OpenCV Interface allows you to call OpenCV functions with mxArray. In a Simulink C-Mex S-function, real_T is bas...

presque 9 ans il y a | 1

Réponse apportée
How can I create a geometry in matlab which I can export to FEA software for analysis?
These file exchange submissions seem like a good starting point for your use-case to export MATLAB-created geometry to a STL fil...

presque 9 ans il y a | 0

Réponse apportée
Code Generation for Model Reference containing noninlined S-Function
Hi Chris, The function loadTMF seems to be related to template make file. Which System target file are you using in your top ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Listbox is ignoring command to reset ListboxTop
Hi, This seems to work for me. I created a uicontrol Listbox, but inside a figure. h = uicontrol('Parent', gcf, 'Style...

presque 9 ans il y a | 0

Réponse apportée
Create design matrix for ANOVA
You can start with zeros and use matrix indexing to create ones. A = zeros(10); rowInd = [1 2 3 4]; colInd = [5 7 8 9];...

presque 9 ans il y a | 0

Réponse apportée
Help with reading/writing an Android to Matlab G-Force program (Android Sensors)
Hi Anthony, This might be happening due to the fact that when using "accelog", MATLAB will give you data from all logs after ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How to rotate quiver head in 3d in matlab
Hi Mathias, One way to possibly do it is by rotating the quiver arrows. h = quiver3(0,0,0,0.5,0,0,'b-','MaxHeadSize'...

presque 9 ans il y a | 0

Réponse apportée
How can I make sure that the Simulink CAN Replay block replays messages with correct timing?
Hi Dietrich, The block does use the timestamp from original file. However, when you replay to a network, the timestamps corre...

presque 9 ans il y a | 0

Réponse apportée
Parfor slows down computation
This is because the overhead added by parfor for parallel computation setup dominates the time needed for calculations. You can ...

presque 9 ans il y a | 1

Réponse apportée
how to bypass error of assume being undefined - Undefined function 'assume' for input arguments of type 'logical'
Hi Ross, Do you have Symbolic Math Toolbox installed? If yes, make sure it's functions are not being shadowed. You can try us...

presque 9 ans il y a | 0

Réponse apportée
Error using loadlibrary when trying to load dll
To load a library, you will need a header file specifying the signatures of the functions used in the DLL.

presque 9 ans il y a | 0

Réponse apportée
With variable sized signals in Simulink, how can TLC code access the "CurrentDimensions" of a variable sized signal?
Hi Keith, Have you tried using LibBlockInputSignalWidth or LibBlockInputSignalSymbolicWidth? I have not tried it myself, ...

presque 9 ans il y a | 0

Charger plus