Community Profile

photo

Agnish Dutta


Active since 2019

Followers: 0   Following: 0

Statistics

All
  • 3 Month Streak
  • Commenter
  • Knowledgeable Level 2
  • First Answer
  • Solver

View badges

Feeds

View by

Answered
I have a signal with centre at 0.5Khz, how can i shift the signal such that the maximum component occurs at the center of the frequency axis?
I have assumed that the signal has only 1 peak. In case of multiple peaks, the "find(P == max(P), 1)" command will return an arr...

5 years ago | 0

| accepted

Answered
Solving for unknown angles
This seems like an ODE. Here's the documentation detailing how to solve ODE's using MATLAB: https://www.mathworks.com/help/symb...

5 years ago | 0

Answered
Plotting Multiple Graphs in a 3D form
The dimensions of the 5 different plots must be the same for the following to work. So make sure you pre-process your data accor...

5 years ago | 0

Answered
2D random walk double for loop
I used the following method to generate the x and y coordinates od 2000 points moving randomly in 2D cartesian space. I was then...

5 years ago | 0

| accepted

Answered
Plotting the solution to the Laplace equation
I suggest using the symbolic mathematics toolbox which provides functions for solving, plotting, and manipulating symbolic math ...

5 years ago | 1

Answered
How to create a line profile from a figure within a script
Consider going through the following MATLAB answers page: https://www.mathworks.com/matlabcentral/answers/389889-how-to-plot-in...

5 years ago | 0

Answered
3D (Surface) Reconstruction of Stereo Image
Use these instructions as a starting point for what you are trying to accomplish: The following shows the workflow for creati...

5 years ago | 0

| accepted

Answered
How can i make GUI pushback button call my App created in app designer?
I recommend using MATLAB appdesigner to create GUIs with interactivity. The first thing to do would be to include the target...

5 years ago | 0

Answered
How can transfer python result to Matlab matrix
You need to save this array in a format that MATLAB understands. You could use scipy.io to do this. As an example: import nu...

5 years ago | 0

Answered
How to create this by a for loop?
Assuming that the f_t+d values are in a 1-D array in contiguous locations, you could use the following code to get the required ...

5 years ago | 0

Answered
How to do a error bar from two curves along y axis in the same plot?
From what I understand, you are trying to plot the curve (x1, y1) along with the deviations of the curve (x2, y2) from (x1, y1)....

5 years ago | 0

Answered
Trying to break time series data up by season
The "getsampleusingtime(tsin,starttime,endtime)" function could be used to create subsets of time series data. You can specify t...

5 years ago | 0

Answered
How can I run this loop in parallel ?
Since you have mentioned that you are new to parallel programming in MATLAB, I suggest going through the following resources: ...

5 years ago | 1

Answered
Plotting two arrays of different lengths
From what I understand, you want to increase the size of a vector to match a specified value, without losing any information. I ...

5 years ago | 0

Answered
Example code for deep Q-learning
Consider going through the following MATLAB answers page. It has links to tutorials and documents containing example codes, that...

5 years ago | 0

Answered
Q-learning with neural network
MATLAB's reinforcement learning toolbox has tools for implementing a variety of RL algorithms such as Deep Q-Network (DQN), Adva...

5 years ago | 0

Answered
unit step function to mimic signal
From what I understand, you want the falling edge of your unit step signal to coincide with that of the square wave. If that ...

5 years ago | 0

Answered
Draw the vector field and eigenvectors in the phase portrait for Van der Pol ODE
If you can calculate the vector field values at every point, then the resulting data can be plotted using the “quiver” function,...

5 years ago | 0

| accepted

Answered
Why the thd function do not give same answer
I believe this is because the "thd(x)" function calculates the Total harmonic distance in a way different from the one you have ...

5 years ago | 0

Answered
Removing a syms variable from a For loop solution
Based on on the provided equation and code, here's something I came up with to calculate the neede values: syms x N = 100 ...

5 years ago | 0

Answered
Designing a band pass filter for filtering a sinusoidal function with a known frequency from a signal with an unknown sampling rate
The signal processing toolbox will give you the necessary functionality to carry out filtering of signals. The following will...

5 years ago | 0

Answered
Is it possible to have AppDesigner started automatically when I start Matlab ?
Create a startup.m file in the userpath folder, which is on the MATLAB® search path. Add commands you want executed at startup. ...

5 years ago | 0

| accepted

Answered
Errorbars on two seperate curves starting from a particular point
I think the command you are looking for is: errorbar(x,y,neg,pos): draws a vertical error bar at each data point, where neg det...

5 years ago | 0

Answered
Arduino Nano, 40 kHz PWM output wave
Note: Nano 2.X is not supported. Other Nano 3.X not tested but expected to work. I've found a few useful links to get you star...

5 years ago | 1

Answered
How do I plot a line showing the distance between two points?
You can use the 'line' function to plot lines on existing axes. Refer to the following document for the same: https://www.mathw...

5 years ago | 0

Answered
Indexing Values from a structure array
You can use logical indexing to obatin the non zero values from the structure arrays as per the code below: Positive_Torque_V...

5 years ago | 0

Answered
Use refreshdata with voronoi plots
I don't think voronoi was designed to support the refreshdata workflow. voronoi is just a function which plots and returns ha...

5 years ago | 0

Answered
Please help me make this function periodic
You can repeat copies of an array along any dimension using the 'repmat()' function. This will allow you to generate a periodic ...

5 years ago | 0

Answered
How to merge two interleaving time series?
I'm assuming, you don't have any gaps in your time series data. One way of doing this would be to put you time series data in...

5 years ago | 1

Answered
Problem when plotting a matrix
From what I understand, you want to plot the values of 'abs(log(Z1shift))' matrix in a particular range. imagesc(x,y,C) specifi...

5 years ago | 0

Load more