I am Application Support Engineer at MathWorks.

My areas of interests are HDL and FPGA development.

Disclaimer: Any articles/ideas/opinions here are my own and in no way reflect that on MathWorks.

Answered

Unable to resolve the name internal.stats.statsizechk.

You may try to uninstall and reinstall the Statistics and Machine Learning toolbox to see if that solves the issue.

Unable to resolve the name internal.stats.statsizechk.

You may try to uninstall and reinstall the Statistics and Machine Learning toolbox to see if that solves the issue.

2 months ago | 0

Answered

numerical integration to obtain response using convolution

The code attached produces an error due to missing multiplication operators. You may replace the line 10 of your code where the ...

numerical integration to obtain response using convolution

The code attached produces an error due to missing multiplication operators. You may replace the line 10 of your code where the ...

2 months ago | 0

| accepted

Answered

Structural Analysis of Plate - Transient Response to Dynamic Point Force

Hi Luke, You may check out the example here to see if you are looking for something similar. You may also see the resources her...

Structural Analysis of Plate - Transient Response to Dynamic Point Force

Hi Luke, You may check out the example here to see if you are looking for something similar. You may also see the resources her...

2 months ago | 0

Answered

TargetPoint — Position of the target relative to the reference body

You may refer to the answer here to a similar question.

TargetPoint — Position of the target relative to the reference body

You may refer to the answer here to a similar question.

2 months ago | 0

Answered

plot states sequence over time

You may use the following line of code: plot(age,sequence(:,1:end)) To create labels for the lines plotted, you may use the le...

plot states sequence over time

You may use the following line of code: plot(age,sequence(:,1:end)) To create labels for the lines plotted, you may use the le...

2 months ago | 1

| accepted

Answered

how to go from NED to ECI frame?

Hi Khang, The “ecef2eci” is part of the set of functions that require the ‘Aerospace Blockset CubeSat Simulation Library’ Add-o...

how to go from NED to ECI frame?

Hi Khang, The “ecef2eci” is part of the set of functions that require the ‘Aerospace Blockset CubeSat Simulation Library’ Add-o...

2 months ago | 0

Answered

How battery energy is calculated in Microgrid Energy Management System (EMS) using Optimization

The value 3.6e6 is the conversion factor for joules to kWh and vice-versa. You may refer the video walkthrough of the battery en...

How battery energy is calculated in Microgrid Energy Management System (EMS) using Optimization

The value 3.6e6 is the conversion factor for joules to kWh and vice-versa. You may refer the video walkthrough of the battery en...

2 months ago | 0

| accepted

Answered

Plotting a 3d plot using multiple for loops: using s parameter matrix (Z_PARAMS must not be NaN)

The error occurs because there is a multiplication of zero and infinity happening which causes a NaN to be input to the z2s func...

Plotting a 3d plot using multiple for loops: using s parameter matrix (Z_PARAMS must not be NaN)

The error occurs because there is a multiplication of zero and infinity happening which causes a NaN to be input to the z2s func...

2 months ago | 0

Answered

Specify boundary conditions for a thermal model (PDE)

You may refer the applyBoundaryCondition function and the solvepde function to see if it fits your requirement. You may also ref...

Specify boundary conditions for a thermal model (PDE)

You may refer the applyBoundaryCondition function and the solvepde function to see if it fits your requirement. You may also ref...

3 months ago | 0

| accepted

Answered

how to insert graphic scale in geographic map??

The quiverm function plots into the map axes. But the geobasemap function plots into the geographic axes. Instead, you may use t...

how to insert graphic scale in geographic map??

The quiverm function plots into the map axes. But the geobasemap function plots into the geographic axes. Instead, you may use t...

3 months ago | 0

Answered

HDL Implementation of PID Controller Using FPGA-in-the-Loop

You may check if Xilinx ISE is correctly installed on your system. You may also confirm the correctness of the Xilinx ISE tool p...

HDL Implementation of PID Controller Using FPGA-in-the-Loop

You may check if Xilinx ISE is correctly installed on your system. You may also confirm the correctness of the Xilinx ISE tool p...

3 months ago | 0

Answered

make adjacent array element the same as current element

You may refer to the piece of code below that uses the find function to achieve your goal without using a loop. function y = tr...

make adjacent array element the same as current element

You may refer to the piece of code below that uses the find function to achieve your goal without using a loop. function y = tr...

3 months ago | 0

| accepted

Answered

I want to use a reshape layer. How can I customize it?

You may refer to the answers in the links below. https://in.mathworks.com/matlabcentral/answers/461988-reshape-layer-in-deep-le...

I want to use a reshape layer. How can I customize it?

You may refer to the answers in the links below. https://in.mathworks.com/matlabcentral/answers/461988-reshape-layer-in-deep-le...

3 months ago | 0

| accepted

Answered

HDL-Coder Delay Balancing in Feedback-Loop workaround

In some cases, when you have blocks inside a feedback loop, adaptive pipelining is unable to insert the required number of pipel...

HDL-Coder Delay Balancing in Feedback-Loop workaround

In some cases, when you have blocks inside a feedback loop, adaptive pipelining is unable to insert the required number of pipel...

3 months ago | 0

Answered

What is the difference between the sample-and-hold block and a delay?

The Sample and Hold block holds the acquired input value at the signal port whenever it receives a trigger event and outputs the...

What is the difference between the sample-and-hold block and a delay?

The Sample and Hold block holds the acquired input value at the signal port whenever it receives a trigger event and outputs the...

3 months ago | 1

| accepted

Answered

Error: lsqcurvefit stopped because it exceeded the function evaluation limit,

Hi, You may refer to the answer to a similar question posted here. Refer the optimoptions documentation to look up the differen...

Error: lsqcurvefit stopped because it exceeded the function evaluation limit,

Hi, You may refer to the answer to a similar question posted here. Refer the optimoptions documentation to look up the differen...

5 months ago | 0

Answered

How o you work the phase difference between the input and the output of a sine wave?

You may refer to this link posted in the answer to a similar question here.

How o you work the phase difference between the input and the output of a sine wave?

You may refer to this link posted in the answer to a similar question here.

5 months ago | 0

| accepted

Answered

finding neighbouring locations in matrix bigger than a certain value

You may refer the method used here to find the neighbouring values of an element in a matrix. To find the locations of elements ...

finding neighbouring locations in matrix bigger than a certain value

You may refer the method used here to find the neighbouring values of an element in a matrix. To find the locations of elements ...

5 months ago | 0

Answered

Simple, but stumped. Using 'xline' to create animated "play marker" across waveform plot.

You may use the following lines of code to clear the previous line: children = get(gca, 'children'); delete(children(1)); The...

Simple, but stumped. Using 'xline' to create animated "play marker" across waveform plot.

You may use the following lines of code to clear the previous line: children = get(gca, 'children'); delete(children(1)); The...

5 months ago | 0

| accepted

Answered

triggered by falling edge, pulse signal

You may refer the Monostable block which can be programmed to detect a rising edge, a falling edge, or either edge. You may also...

triggered by falling edge, pulse signal

You may refer the Monostable block which can be programmed to detect a rising edge, a falling edge, or either edge. You may also...

6 months ago | 0

| accepted

Answered

Quiver for geobasemap and geoscatter

The functions geobasemap and geoscatter plot into the geographic axes. But the quiver function cannot plot into the geographic a...

Quiver for geobasemap and geoscatter

The functions geobasemap and geoscatter plot into the geographic axes. But the quiver function cannot plot into the geographic a...

6 months ago | 0

| accepted

Answered

In a while loop, I have to calculate S (net cash of an insurance company) depending on which events (E1, E2 or E3) happens first. I tried the following code, but its not working. Maybe someone can help me ...

There seems to be few syntax errors in the code. You can use multiple elseif block under the if block but only a single else blo...

In a while loop, I have to calculate S (net cash of an insurance company) depending on which events (E1, E2 or E3) happens first. I tried the following code, but its not working. Maybe someone can help me ...

There seems to be few syntax errors in the code. You can use multiple elseif block under the if block but only a single else blo...

6 months ago | 1

Answered

How to draw a northarrow on a simple plot, and not on a map?

The northarrow function works on map axes. You may want to read the annotation documentation to draw an arrow on a simple plot. ...

How to draw a northarrow on a simple plot, and not on a map?

The northarrow function works on map axes. You may want to read the annotation documentation to draw an arrow on a simple plot. ...

6 months ago | 0

| accepted

Answered

Error in port widths or dimensions. 'Output Port 1' of 'filtereddxlms/Sum1' is a [1024x1] matrix.

Since the Signal Specification block is a virtual block that exists only to specify the attributes of a signal and plays no role...

Error in port widths or dimensions. 'Output Port 1' of 'filtereddxlms/Sum1' is a [1024x1] matrix.

Since the Signal Specification block is a virtual block that exists only to specify the attributes of a signal and plays no role...

6 months ago | 0

Answered

Help! Indexing a Vector, Display Issues

According to the script you have written, if the inputs are provided in the [h,m,s] format, direct addition can be done. Provid...

Help! Indexing a Vector, Display Issues

According to the script you have written, if the inputs are provided in the [h,m,s] format, direct addition can be done. Provid...

6 months ago | 0

| accepted

Answered

plotting x[n] with various points from a file

Stem function requires both X and Y inputs to be vectors or matrices of the same size. You may use the following line of code: ...

plotting x[n] with various points from a file

Stem function requires both X and Y inputs to be vectors or matrices of the same size. You may use the following line of code: ...

6 months ago | 0

| accepted

Answered

Invalid text charcter .Check for unsupported symbol, invisible charcter ,or pasting of non-ASCII chatcters

Please refer this link for answers to a similar question. If the error persists, share your code for better resolution of the is...

Invalid text charcter .Check for unsupported symbol, invisible charcter ,or pasting of non-ASCII chatcters

Please refer this link for answers to a similar question. If the error persists, share your code for better resolution of the is...

6 months ago | 0

Answered

Matrix is singular to working precision

The warning “Matrix is singular to working precision” occurs if the matrix for which you are using to solve the system of linear...

Matrix is singular to working precision

The warning “Matrix is singular to working precision” occurs if the matrix for which you are using to solve the system of linear...

6 months ago | 0

Answered

How can I change the letters in a string input but not the other characters?

It is my understanding that only the letters in the string input must be changed according to the logic of the script and other ...

How can I change the letters in a string input but not the other characters?

It is my understanding that only the letters in the string input must be changed according to the logic of the script and other ...

6 months ago | 0

Answered

What does the "E" with the arrow on the signal?

SimEvents models no longer require gateway blocks. It automatically handles any exchange of data across the time and event domai...

What does the "E" with the arrow on the signal?

SimEvents models no longer require gateway blocks. It automatically handles any exchange of data across the time and event domai...

8 months ago | 1