I am a Software Engineer at MathWorks. I am trained as an Electrical Engineer with experience in power systems.

Professional Interests: MATLAB, Simulink, and Model-Based Design.

Answered

Smart Grid Project - Energy Management System

Hi Blake, I am glad that you insist on investigating this microgrid topic as a researcher. With some similar research experienc...

Smart Grid Project - Energy Management System

Hi Blake, I am glad that you insist on investigating this microgrid topic as a researcher. With some similar research experienc...

9 months ago | 1

| accepted

Answered

Bi directional buck boost converter with simulink and simscape only

Sample time is an intrinsic part of the power electronics circuit model. As a result, it would be difficult to speed up simulati...

Bi directional buck boost converter with simulink and simscape only

Sample time is an intrinsic part of the power electronics circuit model. As a result, it would be difficult to speed up simulati...

10 months ago | 1

| accepted

Answered

How to chose pwm and buck converter parameters?

Simulating the behavior of a solar charging system with this detailed model would be very slow. This is because of the sample ti...

How to chose pwm and buck converter parameters?

Simulating the behavior of a solar charging system with this detailed model would be very slow. This is because of the sample ti...

10 months ago | 1

Answered

How to convert a simscape model like inverter or buck converter to HDL code?

There is a shipped tool called Simscape HDL Workflow Advisor. Using this tool, you should be able to convert your Simscape model...

How to convert a simscape model like inverter or buck converter to HDL code?

There is a shipped tool called Simscape HDL Workflow Advisor. Using this tool, you should be able to convert your Simscape model...

11 months ago | 0

| accepted

Answered

can we generate C/C++ code for closed loop Autotuner?

Let me answer the "how" part of this question. There is a documentation page about the complete workflow of using the Closed-Loo...

can we generate C/C++ code for closed loop Autotuner?

Let me answer the "how" part of this question. There is a documentation page about the complete workflow of using the Closed-Loo...

12 months ago | 0

| accepted

Answered

close loop PID autotuner

Based on the information you provided, replacing the 'FOC Autotuner' block with a 'Closed-Loop PID Autotuner' block is feasible....

close loop PID autotuner

Based on the information you provided, replacing the 'FOC Autotuner' block with a 'Closed-Loop PID Autotuner' block is feasible....

12 months ago | 2

| accepted

Answered

**Importing MATLAB's own SIMULINK routine, the simulation result is wrong.

Based on the information you provided, I have tried this example. However, I was not able to reproduce the same result shown in ...

**Importing MATLAB's own SIMULINK routine, the simulation result is wrong.

Based on the information you provided, I have tried this example. However, I was not able to reproduce the same result shown in ...

2 years ago | 0

Answered

Real-Time Audio Processing: Varying Delay Depending on Initial Under/Overruns

As a first step, you can run the Measure Audio Latency example to verify that your audio I/O system is configured correctly: <h...

Real-Time Audio Processing: Varying Delay Depending on Initial Under/Overruns

As a first step, you can run the Measure Audio Latency example to verify that your audio I/O system is configured correctly: <h...

3 years ago | 1

Answered

Generic battery model - State of Charge

I understand that you observed the initial SOC that is different from the settings in the Battery block in the Simscape Power Sy...

Generic battery model - State of Charge

I understand that you observed the initial SOC that is different from the settings in the Battery block in the Simscape Power Sy...

3 years ago | 0

| accepted

Answered

Set disarmed PWM of PX4 simulink app

I understand that you want to change the disarm signal for PWM outputs in the motor block. It appears that the disarm PWM signal...

Set disarmed PWM of PX4 simulink app

I understand that you want to change the disarm signal for PWM outputs in the motor block. It appears that the disarm PWM signal...

3 years ago | 0

Answered

How can I change package for selected data object?

I understand that you may want to create custom storage classes using packages other than 'Simulink' or 'mpt'. Based on the work...

How can I change package for selected data object?

I understand that you may want to create custom storage classes using packages other than 'Simulink' or 'mpt'. Based on the work...

3 years ago | 0

Answered

using RF tool box,How to create a matrix ABCD with 4 complex vectors A, B, C and D

I understand that you want to create a matrix ABCD with 4 complex vectors A, B, C and D. Based on the code snippet you posted, i...

using RF tool box,How to create a matrix ABCD with 4 complex vectors A, B, C and D

I understand that you want to create a matrix ABCD with 4 complex vectors A, B, C and D. Based on the code snippet you posted, i...

3 years ago | 0

Answered

Assigning a Triangular Distribution to Each Entity of a Process Flow Model of SimEvents

I understand that you want to have an "Entity Server Block" that has an input port providing the service time duration. I assume...

Assigning a Triangular Distribution to Each Entity of a Process Flow Model of SimEvents

I understand that you want to have an "Entity Server Block" that has an input port providing the service time duration. I assume...

4 years ago | 0

| accepted

Answered

How to quantify spectrogram comparison

I understand that you want to quantify the difference between two spectrograms and use this quantitative information in fault di...

How to quantify spectrogram comparison

I understand that you want to quantify the difference between two spectrograms and use this quantitative information in fault di...

4 years ago | 0

Answered

Fitting a probability density function with a kernel density estimator. How Matlab handles the support?

I understand that you want to know how MATLAB handles the Kernel density options for 'support' in the "fitdist" function. The do...

Fitting a probability density function with a kernel density estimator. How Matlab handles the support?

I understand that you want to know how MATLAB handles the Kernel density options for 'support' in the "fitdist" function. The do...

4 years ago | 2

| accepted

Answered

Creating a sinusoidal pwm using the hdl coder blocks

I understand that you want to generate code from your Simulink model using the HDL Coder. As long as the simulation result is sa...

Creating a sinusoidal pwm using the hdl coder blocks

I understand that you want to generate code from your Simulink model using the HDL Coder. As long as the simulation result is sa...

4 years ago | 0

Answered

What is difference between unwrap(angle(X)) and phase(X)?

I understand that you want to extract phase angles from channel matrix (which is 'csi' in the data file). However, using the scr...

What is difference between unwrap(angle(X)) and phase(X)?

I understand that you want to extract phase angles from channel matrix (which is 'csi' in the data file). However, using the scr...

4 years ago | 1

| accepted

Answered

filtfilt returns unexpected large value when using with LPC

I understand that you want to use the "filtfilt" function in source-filter separation. After using the "filtfilt" function, the ...

filtfilt returns unexpected large value when using with LPC

I understand that you want to use the "filtfilt" function in source-filter separation. After using the "filtfilt" function, the ...

4 years ago | 0

Answered

Can't figure out why the integral() command is returning error "Matrix dimensions must agree", but they do agree.

I understand that you want to integrate a function over time using the "integral" function. The error message is that "Matrix di...

Can't figure out why the integral() command is returning error "Matrix dimensions must agree", but they do agree.

I understand that you want to integrate a function over time using the "integral" function. The error message is that "Matrix di...

4 years ago | 0

Answered

How can you set the initital condition 'displacement' of the mass in a simple spring-damper-mass system in Simscape?

I understand that you want to set the initial displacement of the "Mass" block in a Mass-Spring-Damper model in Simscape. I assu...

How can you set the initital condition 'displacement' of the mass in a simple spring-damper-mass system in Simscape?

I understand that you want to set the initial displacement of the "Mass" block in a Mass-Spring-Damper model in Simscape. I assu...

4 years ago | 0

Answered

What is the best way to do some calculation within a state in stateflow?

I understand that you want to find a better way to write MATLAB code in Stateflow states. I am not sure in what sense you mean b...

What is the best way to do some calculation within a state in stateflow?

I understand that you want to find a better way to write MATLAB code in Stateflow states. I am not sure in what sense you mean b...

4 years ago | 0

| accepted

Answered

How is the equation for u_g given in MatLab's discrete Dryden Wind Turbulence Model a difference equation?

I understand that you have a question about the difference equation expression in the "Dryden Wind Turbulence Model (Discrete)" ...

How is the equation for u_g given in MatLab's discrete Dryden Wind Turbulence Model a difference equation?

I understand that you have a question about the difference equation expression in the "Dryden Wind Turbulence Model (Discrete)" ...

4 years ago | 0

| accepted

Answered

I'm trying to create a time varying system in simulink using matlab function block but even if the logic is correct it says the value which i'm calling form workspace is not Simulink.Signal

This happens maybe because you have an object defined in the base workspace and you are using a data store with the 'Data store ...

I'm trying to create a time varying system in simulink using matlab function block but even if the logic is correct it says the value which i'm calling form workspace is not Simulink.Signal

This happens maybe because you have an object defined in the base workspace and you are using a data store with the 'Data store ...

4 years ago | 0

Answered

DC-DC buck converter step response gives oscillations at the start of the simulation ?

I understand that you are simulating a DC-DC buck converter using the Simscape Power Systems. There is some oscillation at the b...

DC-DC buck converter step response gives oscillations at the start of the simulation ?

I understand that you are simulating a DC-DC buck converter using the Simscape Power Systems. There is some oscillation at the b...

4 years ago | 0

| accepted

Answered

How to demodulate a sound through MATLAB

I understand that you want to build a DSBSC demodulator to demodulate a recorded sound file. You might refer to the following li...

How to demodulate a sound through MATLAB

I understand that you want to build a DSBSC demodulator to demodulate a recorded sound file. You might refer to the following li...

4 years ago | 0

Answered

Does anyone know how I could model a variable resistor as a linear potentiometer in Simulink? The library I have does not currently contain this block

I understand that you want to recreate the function of a potentiometer using a variable resistor in your current Simulink librar...

Does anyone know how I could model a variable resistor as a linear potentiometer in Simulink? The library I have does not currently contain this block

I understand that you want to recreate the function of a potentiometer using a variable resistor in your current Simulink librar...

4 years ago | 1

Answered

fourier synthesis program when given ak

I understand that you want to compute Fourier synthesis using 'for' loops. The equation that you use to compute matrix 'F' creat...

fourier synthesis program when given ak

I understand that you want to compute Fourier synthesis using 'for' loops. The equation that you use to compute matrix 'F' creat...

4 years ago | 0

Answered

FFT2: Get the actual frequencies and amplitudes

I understand that you use the "fft2" function to analyze an artificial image. The image is created by summing up the first five ...

FFT2: Get the actual frequencies and amplitudes

I understand that you use the "fft2" function to analyze an artificial image. The image is created by summing up the first five ...

4 years ago | 0

Answered

Power dissipation in vehicle dampers

I understand that you want to determine the energy dissipation of an automotive damper per cycle. There are many types of aut...

Power dissipation in vehicle dampers

I understand that you want to determine the energy dissipation of an automotive damper per cycle. There are many types of aut...

4 years ago | 0

Answered

Damping Ratios and Frequencies

I understand that you want to derive damping ratios and natural frequencies from a linear model. This model may be a state-space...

Damping Ratios and Frequencies

I understand that you want to derive damping ratios and natural frequencies from a linear model. This model may be a state-space...

4 years ago | 1