photo

Prateek

Active since 2022

Followers: 0   Following: 0

I am an Engineer at MathWorks. My interests hover around Embedded Systems, electronics and programming. DISCLAIMER: Any advice or opinions here are my own, and in no way reflect that of MathWorks

Programming Languages:
C++, C, MATLAB, Arduino
Spoken Languages:
English, Hindi
Professional Interests:
Sensors, Embedded Systems, Micro-electromechanical Systems (MEMS), Electronics

Statistics

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

View badges

Feeds

View by

Answered
How to model a time series data with a custom function?
Hi Ana, A good way to fit ex-Gaussian function is to use the "interpolant" option in the curve fitting toolbox. I was able to o...

2 years ago | 1

Answered
How to find (X,Y,Z) grid (obtained from profilometer) of a functional groups attached to a surface ?
Hello Ankit, If I understand correctly, you want to simulate the results of a profilometer using the X,Y,X co-ordinates you ha...

2 years ago | 0

Answered
How to describe right hand side of energy equation in tridiagonal system? Didn't get right hand side values of tridiagonal matrix.
Hello Gayathri, The code you have posted executes without any error. For better assistance, please post more details about...

2 years ago | 0

Answered
Deploying Neural Network with Simulink Embedded Coder: Reducing Code Size and Improving Execution Speed
Hello Julian, Optimizing code generation for memory is broad topic, and I can point you to some pages that contain relevant in...

2 years ago | 1

Answered
Keysight E4980AL LCR meter continuous reading of capacitance value and simultaneous graph drawing
Hello Fevzihan, You can install the “Instrument Control Toolbox Support Package for Keysight IO Libraries and VISA Interface”....

2 years ago | 0

Answered
Convert the cell array to a 4-dimensional array with auditory spectrograms along the fourth dimension.
Hello 혜성 오, The function 'cat' requires the arrays to be concatenated to have the same size along the dimension of concatena...

2 years ago | 0

Answered
How can I use parallel computing to train multiple different regression models using multiple GPUs?
Hello Azem, There are ways to utilize multiple GPUs with MATLAB. Please refer to this link for the details: How can I use mult...

2 years ago | 0

Answered
Linux Matlab 2022b "Error Starting Desktop"
Hello George, Please refer to this MATLAB Answers page: Why will MATLAB not start up properly on my Linux machine? - MATLAB An...

2 years ago | 0

Answered
simulate a B-mode ultrasound image of a 1mm steel ball in water using a 35MHz transducer, where the distance between the transducer and the steel ball is 20mm
Hello Jenifer, Thanks for sharing the code. The “conv2” function is not designed to compute convolution with 3-dimensional matr...

2 years ago | 0

| accepted

Answered
matlab out of memory problem
Hello Gophela, Thanks for sharing your code. I was able to execute it in my system, and it produced results without any error ...

2 years ago | 0

| accepted

Answered
Fractions using tex interpreter
Hello Joaquin, As of now, the “TeX” interpreter does not support displaying fractions, and the “LaTeX” interpreter is suggested...

2 years ago | 1

Answered
String data from Twitter imported via Datafeed Toolbox is truncated in MATLAB: Data is incomplete
Hello Ed, This issue arises due to the default 140-character limit of Twitter search API. To retrieve the complete text, the ...

2 years ago | 1

| accepted

Answered
How can I communicate Mitsubishi FX5U plc with MATLAB ?
Hello Rümeysa, You can design and validate PLC algorithms in a simulation environment using MATLAB and Simulink. For Mitsubish...

2 years ago | 0

| accepted

Answered
Running app reformats the design
Hello Zachary, As I understand, the components change position once the app is run, and that this issue was not present in an e...

2 years ago | 0

| accepted

Answered
I wamt to generate spheres with different diameters and display it in a single image one below the other
Hello Aditya, For better assistance, could you elaborate on your requirements? Please do include the relationship between the ...

2 years ago | 0

Answered
How to Read the tables from Word document (*.docx) with table headings?
Hello Bala, I was able to execute the code posted by you, with a dummy Word file containing a table. The contents of the table...

2 years ago | 0

Answered
Matlab was working fine but is now extremely slow to run
Hi Spencer, The following suggestions could be of help - 1. Ensure that you have the Update 2 for MATLAB R2022b. F...

2 years ago | 0

Answered
Defining measurement range for MPU 6050 Gyro connected through arduino
Hi Bar, The Gyroscope range for the MPU6050 sensor in MATLAB is currently fixed at +/-250 dps. However, there exists a workarou...

2 years ago | 0

Answered
How do I get the second element in the first row, like 19200 in the picture
Hello zl, As per the image, there seem to be two elements in the same cell, which would require delimiting the data. For bett...

2 years ago | 0

| accepted

Answered
How to increase maximum number of open files for code generation
Hello Milos, MATLAB places a limit of up to 20 open files in order to conserve static memory allocation. It would be id...

2 years ago | 0

Answered
How can I design an arduino microcontroller on simulink ?
Hi Mohamed, You need to install the Arduino Support Package for Simulink. The support package enables interfacing to many vers...

2 years ago | 0

| accepted

Answered
Creating a loop for multiple year analysis
Hi Lejla, The data in your code can be indexed to enable processing in loops, which would simplify the code. For example, the...

2 years ago | 0

Answered
I am trying to connect an Arduino to Matlab and "fopen" or "BytesAvailable" give me errors.
Hi Jake, A valid “COM” port is required by “fopen”. Please debug the code to ensure that an available “COM” port is being pas...

2 years ago | 0

Answered
How do I find the centerlines shown in the image?
Hi Husain, There can be different approaches to find and draw centerlines, such as scanning image columns or using the funct...

2 years ago | 0

Answered
How to control DC motor with Elegoo mega2560 board and adafruit motorshield V1?
Hi Hannah, The code shared by you is for Adafruit Motorshield V2 but it seems you’re using Adafruit Motorshield V1. Please not...

2 years ago | 0

Answered
Embedded Coder Support Package for TI C2000 Processors on Parallels Desktop
Hi Jenny, This could be happening due to the software environment, but I could locate other possibilities also, courtesy Texas...

2 years ago | 0

Answered
I am trying to run a simple Led On and Off project using arduino and app designer. The program does seem to function however, the code has errors
Hi Kekeletso, The code snippets you have posted seem fine in themselves; perhaps the problem lies in the rest of the code. For...

2 years ago | 0

| accepted

Answered
How to use generated code from Matlab simulink in arduino ?
Hello Hocine, The Arduino IDE uses its own language, which is not directly supported by the Simulink Support Package. Hence th...

2 years ago | 0

Answered
How to interface another software with Matlab to give inputs?
Hi Mojan, Interfacing to MATLAB is feasible if the software of the spincoater allows so. I request you to review the documen...

2 years ago | 0

Answered
PDE for mesh element matrix not valid
Hi Anosh, The nodes matrix in “untitled.m” has all Z's at 0, while elements are tets (4 nodes). In a solid geometry, all nod...

2 years ago | 0

Load more