I am Application Support Engineer at Mathworks

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

Answered

Matlab and Simulink online training

Hi You can access the course certificate from the hyperlink “View/Share Certificate” which is on the right side of the course...

Matlab and Simulink online training

Hi You can access the course certificate from the hyperlink “View/Share Certificate” which is on the right side of the course...

7 meses ago | 0

| accepted

Answered

Export multiple graphs to Excel

You can use xlswritefig function or MLGetFigure function to add plots to excel sheet. with xlswritefig you can mention cell...

Export multiple graphs to Excel

You can use xlswritefig function or MLGetFigure function to add plots to excel sheet. with xlswritefig you can mention cell...

7 meses ago | 0

| accepted

Answered

How to generate pure white noise of 10V in MATLAB Simulink?

You can use Band-Limited White Noise block to generate the white noise. The Band-Limited White Noise block generates normally...

How to generate pure white noise of 10V in MATLAB Simulink?

You can use Band-Limited White Noise block to generate the white noise. The Band-Limited White Noise block generates normally...

7 meses ago | 0

Answered

Simulation of real world scenario on simulink/simscape

MATLAB doesn't have the feature which supports atmospheric effects. Our developers are already working on this feature and it wi...

Simulation of real world scenario on simulink/simscape

MATLAB doesn't have the feature which supports atmospheric effects. Our developers are already working on this feature and it wi...

7 meses ago | 1

| accepted

Answered

Create a Unreal Engine Scenario from Driving Scenario Creator

I understand that you want to view simulation of your custom scenario in Unreal Engine. In MATLAB, we use Simulation 3D Scene Co...

Create a Unreal Engine Scenario from Driving Scenario Creator

I understand that you want to view simulation of your custom scenario in Unreal Engine. In MATLAB, we use Simulation 3D Scene Co...

7 meses ago | 0

Answered

How to solve a multivariable function with restriction

I understand that you want to find the function value with other conditions satisfying. You can use Symbolic Math Toolbox to do ...

How to solve a multivariable function with restriction

I understand that you want to find the function value with other conditions satisfying. You can use Symbolic Math Toolbox to do ...

7 meses ago | 1

| accepted

Answered

simulink scope: scale x axis

I understand that you want to change time units from seconds to hours/days of a scope during the simulation. You can do that by ...

simulink scope: scale x axis

I understand that you want to change time units from seconds to hours/days of a scope during the simulation. You can do that by ...

7 meses ago | 0

Answered

How to create new script which contains nonlinear algebraic equation including integral?

I understand that you wants to implement the integrals in MATLAB. You can use Symbolic Math Toolbox to implement it syms A l...

How to create new script which contains nonlinear algebraic equation including integral?

I understand that you wants to implement the integrals in MATLAB. You can use Symbolic Math Toolbox to implement it syms A l...

8 meses ago | 0

Answered

Each physical network must be connected to exactly one Solver Configuration block. There is no Solver Configuration block connected to Physical Network with the following blocks:MATLAB error

I understand that you are getting the because you didn’t add the solver configuration block to your physical network. Each ph...

Each physical network must be connected to exactly one Solver Configuration block. There is no Solver Configuration block connected to Physical Network with the following blocks:MATLAB error

I understand that you are getting the because you didn’t add the solver configuration block to your physical network. Each ph...

8 meses ago | 0

Answered

Band pass Filter in seismic data

I understand that the data provided is for a single sample and code is for multiple samples. As you are plotting the signal and ...

Band pass Filter in seismic data

I understand that the data provided is for a single sample and code is for multiple samples. As you are plotting the signal and ...

9 meses ago | 0

Answered

How can PLOT the time waveform and its frequency-domain representation using FFT

I understand that you want to observe the signal in both time and frequency domain. You can directly plot the signal in time ...

How can PLOT the time waveform and its frequency-domain representation using FFT

I understand that you want to observe the signal in both time and frequency domain. You can directly plot the signal in time ...

9 meses ago | 0

Answered

Power Spectrum Plotting of a Signal

I understand that you want to plot the power spectrum using pwelch. It can be achieved by mentioning spectrumtype input of "pwel...

Power Spectrum Plotting of a Signal

I understand that you want to plot the power spectrum using pwelch. It can be achieved by mentioning spectrumtype input of "pwel...

9 meses ago | 0

| accepted

Answered

how to write code for intergral with two variables?

I understand that you are trying to get integral values at 600 values of x, which is taking so much time to run. You can use “fp...

how to write code for intergral with two variables?

I understand that you are trying to get integral values at 600 values of x, which is taking so much time to run. You can use “fp...

9 meses ago | 0

Answered

'Solve' 2 equations simultaneously symbolically; one is a 6th order polynomial, answer in the form of z

I understand that you are getting solution of a1, a2 in terms of x, y, z. If there are infinitely many solutions for an equ...

'Solve' 2 equations simultaneously symbolically; one is a 6th order polynomial, answer in the form of z

I understand that you are getting solution of a1, a2 in terms of x, y, z. If there are infinitely many solutions for an equ...

9 meses ago | 1

| accepted

Answered

Cell elements must be character arrays. (Solver equations created in a loop)

I understand that you want to solve a system of 50 linear equations for 3 variables. I am not able to reproduce the error on my ...

Cell elements must be character arrays. (Solver equations created in a loop)

I understand that you want to solve a system of 50 linear equations for 3 variables. I am not able to reproduce the error on my ...

9 meses ago | 0

Answered

Basic Integration from negative infinity to a variable

I understand that your lower limit is -Inf, it makes e^(-x) tends to Inf. In MATLAB, you can create symbolic math variables us...

Basic Integration from negative infinity to a variable

I understand that your lower limit is -Inf, it makes e^(-x) tends to Inf. In MATLAB, you can create symbolic math variables us...

9 meses ago | 0

Answered

how to create an discrete equation

I understand that you want to create discrete functions using Symbolic Math Toolbox. You can implement it by creating symbolic f...

how to create an discrete equation

I understand that you want to create discrete functions using Symbolic Math Toolbox. You can implement it by creating symbolic f...

9 meses ago | 0

Answered

Substituting a function from a differential equation

I understand that you want to substitute diff(x(t),t), diff(x(t),t), diff(x(t),t) values in diff(alpha(t),t). You can use “isola...

Substituting a function from a differential equation

I understand that you want to substitute diff(x(t),t), diff(x(t),t), diff(x(t),t) values in diff(alpha(t),t). You can use “isola...

9 meses ago | 0

Answered

substitue part of equation with symbolic value

I understand that you want to change 0.1*x*y as a in Eq. Since there is no term 0.1*x*y in the Eq, subs function returns the sam...

substitue part of equation with symbolic value

I understand that you want to change 0.1*x*y as a in Eq. Since there is no term 0.1*x*y in the Eq, subs function returns the sam...

9 meses ago | 0

Answered

print png figure terminal mode remotely

I understand that you are trying to display every scatter plot and then print it. You can tun off figure visibility and then s...

print png figure terminal mode remotely

I understand that you are trying to display every scatter plot and then print it. You can tun off figure visibility and then s...

9 meses ago | 0

Answered

how to say 2 variables are equal and solve for one variable? I have two eqations having variables a and x. After integrating the equation, i get the solution 'y' in terms of 'a' and 'x'. Now I wand to differentiate 'y' w.r.t. 'a' for a=x. How to do?

I understand that you want to get y as a function of x, a and after that you want to using x=a condition and find a>20 at which ...

how to say 2 variables are equal and solve for one variable? I have two eqations having variables a and x. After integrating the equation, i get the solution 'y' in terms of 'a' and 'x'. Now I wand to differentiate 'y' w.r.t. 'a' for a=x. How to do?

I understand that you want to get y as a function of x, a and after that you want to using x=a condition and find a>20 at which ...

9 meses ago | 0

Answered

How can I make a variable that is a matrix correctly output another matrix in a symbolic function?

I understand that you directly used 1x300 sized matrix to create the symbolic equation. I substituted the variables after rearra...

How can I make a variable that is a matrix correctly output another matrix in a symbolic function?

I understand that you directly used 1x300 sized matrix to create the symbolic equation. I substituted the variables after rearra...

9 meses ago | 0

Answered

Plotting cycles of signal

I understand that you want to plot 3 periods of the signal and obtain its Fourier Series. t = [-pi:0.1:0 0:0.1:pi]; z = [-pi...

Plotting cycles of signal

I understand that you want to plot 3 periods of the signal and obtain its Fourier Series. t = [-pi:0.1:0 0:0.1:pi]; z = [-pi...

9 meses ago | 0

Answered

In figure object, how to change multiple subplot axis labels at once from gplotmatrix output?

I understand from your question that you want to rotate and adjust the position of the labels programmatically. You can chang...

In figure object, how to change multiple subplot axis labels at once from gplotmatrix output?

I understand from your question that you want to rotate and adjust the position of the labels programmatically. You can chang...

9 meses ago | 0

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

casi 2 años ago

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

casi 2 años ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

casi 2 años ago

Solved

Roll the Dice!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

casi 2 años ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

casi 2 años ago

Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

casi 2 años ago