回答済み
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 ...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
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]; %...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 1

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 1

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

9年弱 前 | 1

| 採用済み

回答済み
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 ...

9年弱 前 | 0

回答済み
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...

9年弱 前 | 0

回答済み
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...

9年弱 前 | 1

回答済み
Read rotary encoder data from Arduino
You can use the functions like <https://www.mathworks.com/help/supportpkg/arduinoio/ref/readdigitalpin.html readDigitalPin> to ...

9年弱 前 | 0

回答済み
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...

9年弱 前 | 0

| 採用済み

回答済み
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...

9年弱 前 | 0

回答済み
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...

9年弱 前 | 1

回答済み
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...

9年弱 前 | 1

回答済み
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...

9年弱 前 | 0

回答済み
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 ...

9年弱 前 | 0

| 採用済み

回答済み
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...

9年弱 前 | 0

回答済み
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];...

9年弱 前 | 0

回答済み
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 ...

9年弱 前 | 1

| 採用済み

回答済み
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'...

9年弱 前 | 0

回答済み
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...

9年弱 前 | 0

回答済み
Parfor slows down computation
This is because the overhead added by parfor for parallel computation setup dominates the time needed for calculations. You can ...

9年弱 前 | 1

回答済み
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...

9年弱 前 | 0

回答済み
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.

9年弱 前 | 0

回答済み
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, ...

9年弱 前 | 0

さらに読み込む