Answered

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

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

7 years ago | 1

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 1

Answered

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

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

7 years ago | 1

| accepted

Answered

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

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

7 years ago | 0

| accepted

Answered

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

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

7 years ago | 1

| accepted

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 1

Answered

Read rotary encoder data from Arduino

You can use the functions like <https://www.mathworks.com/help/supportpkg/arduinoio/ref/readdigitalpin.html readDigitalPin> to ...

Read rotary encoder data from Arduino

You can use the functions like <https://www.mathworks.com/help/supportpkg/arduinoio/ref/readdigitalpin.html readDigitalPin> to ...

7 years ago | 0

Answered

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

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

7 years ago | 0

| accepted

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 1

Answered

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

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

7 years ago | 1

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 0

| accepted

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 1

| accepted

Answered

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

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

7 years ago | 0

Answered

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

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

7 years ago | 0

Answered

Parfor slows down computation

This is because the overhead added by parfor for parallel computation setup dominates the time needed for calculations. You can ...

Parfor slows down computation

This is because the overhead added by parfor for parallel computation setup dominates the time needed for calculations. You can ...

7 years ago | 1

Answered

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

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

7 years ago | 0

Answered

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.

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.

7 years ago | 0

Answered

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

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

7 years ago | 0

Answered

Setting up Raspberry Pi with Matlab

Hi Dane, You might need to start MATLAB using "Run as Administrator" for it to detect the SD card.

Setting up Raspberry Pi with Matlab

Hi Dane, You might need to start MATLAB using "Run as Administrator" for it to detect the SD card.

7 years ago | 0

Answered

What should I insert for 'MAP' in immovie(X,MAP)?

Hi Maya, The reason you are getting this error is because the function call immovie(X,map) requires X to be an indexed image....

What should I insert for 'MAP' in immovie(X,MAP)?

Hi Maya, The reason you are getting this error is because the function call immovie(X,map) requires X to be an indexed image....

7 years ago | 1

| accepted

Answered

Empty sym solution when using symbolic solve() function

Hi Marc, The reason you are seeing an empty solution is because the set of equations you are trying to solve does not have a ...

Empty sym solution when using symbolic solve() function

Hi Marc, The reason you are seeing an empty solution is because the set of equations you are trying to solve does not have a ...

7 years ago | 0

Answered

Graphics problem when zooming

Hi Clemens, Can you try switching to software OpenGL? You can do this on windows by executing the following command in MATLAB...

Graphics problem when zooming

Hi Clemens, Can you try switching to software OpenGL? You can do this on windows by executing the following command in MATLAB...

7 years ago | 0