Community Profile

photo

Ayush Bansal


Last seen: 13 days ago

MathWorks

17 total contributions since 2020

I am Application Support Engineer at Mathworks.
My responsibility is to provide the best support for an application like ML, Signal Processing.
Disclaimer. Any articles/ides/opinions here are my own and in no way reflect that of Mathworks.

Ayush Bansal's Badges

  • 3 Month Streak
  • Revival Level 2
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Selecting ROI doesn't work
After selecting the area you need to create the mask by double-clicking, or by right-clicking inside the region and selecting C...

7 months ago | 0

Answered
Animate a blue box moving around the grid
Create an app using App designer. Use startupFcn callback to execte a function on starting of the app. Use KeyPressFcn callback ...

8 months ago | 0

Answered
Why can't I use app.UIAxes.CurrentPoint in MATLAB R2018b AppDesigner?
CurrentPoint property for uiaxes was introduced from R2019a. uiaxes was introced in R2016a.

8 months ago | 0

| accepted

Answered
How to make same ROI?
Make sure while using poly2mask(x,y,m,n), m and n are same dimension as image otherwise image size will change. Check the script...

8 months ago | 0

Answered
change in frequency domain with resampling
interp1 have different options to choose from but resample has anti-aliasing filter. Frequency vector will be different for bot...

8 months ago | 0

| accepted

Answered
How to apply Hilbert Huang transfer method on the signal Sc(t):
Create a t vector varying from 0 to 0.3s with sampling rate fs t=[0:1/fs:0.3]; [value,idx1]=min(abs(t-0.1)); which will give...

8 months ago | 0

Answered
I want to fill these 15 equal zones with the different %age value and these values to be depicted by color scale
Use fill(X,Y,C) to fill the polygon having X,Y coordinates, with colour defined by C.

8 months ago | 1

Answered
Updating GUI Popup Menu in Seperate Callback Function
getappdata is used to retrieve data stored using the setappdata function. setappdata stored data in a UI. Both these functions...

8 months ago | 0

| accepted

Answered
Fourier Analysis of a sound wave.
Use Pressure (Pa)=Volts(mv)/sensitivity(mV/Pa) to calculate pressure from voltage. Use max(A) which returns the maximum elemen...

8 months ago | 0

Answered
How to detect the calling axes from context menu using AppDesigner
Assign the object of ContextMenu to the axes property ContextMenu. Refer to Context Menu for Specific Component example.

8 months ago | 1

| accepted

Answered
Message display on basis of no error in app designer Matlab
Use Try/catch to catch the errors and uialert to display error message in the app. Use app.UIFigure (default figure of app) as a...

10 months ago | 0

| accepted

Answered
Live Script Editor, 'View Variable' option
View the variable in workspace and check the variable value at every step using step in. Use the function openvar(‘variable n...

10 months ago | 0

| accepted

Answered
selecting region of plot for calculations
WindowButtonDown callback function is triggered when mouse button is clicked. Get the current position (i.e. (x,y)) of the poin...

10 months ago | 1

| accepted

Answered
How can I draw a cylinder on a cube using pde modeler commad?
The pdeModeler App doesn’t allow user to draw a 3D model. A possible workaround is creating geometry from mesh using volume m...

10 months ago | 0

Answered
Display 3D binary matrix on a high resolution rectangular grid
For getting image from 3D Binary matrix into a rectangular grid we can use ndgrid function. For exporting the figure in high r...

10 months ago | 0

Answered
Play, Stop, Pause, Resume and Volume control in Real-Time with Audio System Toolbox
A function to control audio volume directly is not available in MATLAB . Workaround would be controlling system volume in the ...

10 months ago | 0