![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/26948667_1657713621927_DEF.jpg)
Harsh Sanghai
MathWorks
Followers: 0 Following: 0
I am an Associate Application Support Engineer at MathWorks. My major responsibilities and expertise is on MATLAB at MathWorks. DISCLAIMER: Any advice or opinions here are my own, and in no way reflect that of MathWorks.
Programming Languages:
MATLAB
Spoken Languages:
English
MATLAB
Spoken Languages:
English
Feeds
已回答
What's the most efficient approach to fit diffusivity in a mass transfer PDE by using experimentally-determined mass released as a target?
Hi, This method may be computationally expensive, and the accuracy of the results may depend on the chosen initial range of dif...
What's the most efficient approach to fit diffusivity in a mass transfer PDE by using experimentally-determined mass released as a target?
Hi, This method may be computationally expensive, and the accuracy of the results may depend on the chosen initial range of dif...
1 year 前 | 0
已回答
Number of epochs not reached in anfisedit
Hi, If you are observing that the model is only trained for 2 epochs instead of 6, there might be several reasons for this beha...
Number of epochs not reached in anfisedit
Hi, If you are observing that the model is only trained for 2 epochs instead of 6, there might be several reasons for this beha...
1 year 前 | 0
已回答
Karhunen-Loeve Transform for watermarking
Hi, Here is a sample code which you can use for digital watermarking using KLT transform in using MATLAB: % Read the original ...
Karhunen-Loeve Transform for watermarking
Hi, Here is a sample code which you can use for digital watermarking using KLT transform in using MATLAB: % Read the original ...
1 year 前 | 0
已回答
sdi.Repository.clearRepositoryFile never ends
Hi, The "sdi.Repository.clearRepositoryFile" command is used to clear the repository file used by the Simulink Data Inspector (...
sdi.Repository.clearRepositoryFile never ends
Hi, The "sdi.Repository.clearRepositoryFile" command is used to clear the repository file used by the Simulink Data Inspector (...
1 year 前 | 0
已回答
Pass an open pipeline from C++ to Matlab
Hi, It is not possible to pass an open pipeline (a FILE pointer) directly to a MATLAB variable using MATLAB's built-in data typ...
Pass an open pipeline from C++ to Matlab
Hi, It is not possible to pass an open pipeline (a FILE pointer) directly to a MATLAB variable using MATLAB's built-in data typ...
1 year 前 | 0
已回答
Viewing same slice of 2 different image stacks with sliceViewer
Hi, To achieve this, you can add a listener to the "SliceNumber" property of s1 that updates the "SliceNumber" property of s2 w...
Viewing same slice of 2 different image stacks with sliceViewer
Hi, To achieve this, you can add a listener to the "SliceNumber" property of s1 that updates the "SliceNumber" property of s2 w...
1 year 前 | 0
已回答
How to use pdist for distance travelled and tracking, calculated on 2 pairs of centroids for 2 images ?
Hi, To use "pdist" to track the balls and measure their distance traveled, you can calculate the pairwise Euclidean distance be...
How to use pdist for distance travelled and tracking, calculated on 2 pairs of centroids for 2 images ?
Hi, To use "pdist" to track the balls and measure their distance traveled, you can calculate the pairwise Euclidean distance be...
1 year 前 | 0
已回答
Divide matrix into subgroups where the full matrix is not consistant.
Hi, To divide a matrix into submatrices of equal size, you can use the "reshape" function instead of "mat2cell". "reshape" can ...
Divide matrix into subgroups where the full matrix is not consistant.
Hi, To divide a matrix into submatrices of equal size, you can use the "reshape" function instead of "mat2cell". "reshape" can ...
1 year 前 | 0
已回答
Inverse Power Method Doesnt Work
Hi, The Power Method is typically used to find the largest eigenvalue and its associated eigenvector of a matrix. To find the s...
Inverse Power Method Doesnt Work
Hi, The Power Method is typically used to find the largest eigenvalue and its associated eigenvector of a matrix. To find the s...
1 year 前 | 0
已回答
Is there any possible way to generate M code from Simulink model
Hi, Another approach that you can take is to use the Simulink Requirements feature. Simulink Requirements allows you to create ...
Is there any possible way to generate M code from Simulink model
Hi, Another approach that you can take is to use the Simulink Requirements feature. Simulink Requirements allows you to create ...
1 year 前 | 0
已回答
How can I reiterate a vector in side for loop when a condition is satisfied ?
Hi, Based on your explanation, it seems like you want to fix the value of "PreviousselectAngle_Max" in the inner loop of the ou...
How can I reiterate a vector in side for loop when a condition is satisfied ?
Hi, Based on your explanation, it seems like you want to fix the value of "PreviousselectAngle_Max" in the inner loop of the ou...
1 year 前 | 0
| 已接受
已回答
battery twin in simulink
Hi, The error message indicates that the data type of the signal coming from your Arduino is uint16, but the input port of the ...
battery twin in simulink
Hi, The error message indicates that the data type of the signal coming from your Arduino is uint16, but the input port of the ...
1 year 前 | 0
已回答
Arduino Mega not detect
Hi, There could be several reasons why your Arduino Mega 2560 is not detected by Simulink: Driver Issues: Make sure that the p...
Arduino Mega not detect
Hi, There could be several reasons why your Arduino Mega 2560 is not detected by Simulink: Driver Issues: Make sure that the p...
1 year 前 | 0
已回答
Is it possible to convert between ComponentContainer and AppBase classdef files?
Hi, You can export the App Designer project as a MATLAB file (.m) and edit the classdef line in the exported file. Once you've ...
Is it possible to convert between ComponentContainer and AppBase classdef files?
Hi, You can export the App Designer project as a MATLAB file (.m) and edit the classdef line in the exported file. Once you've ...
1 year 前 | 0
已回答
load flow not converging if the load type is constant PQ
This could be the possible reason: Improper initialization of the load flow: If the load flow is not initialized properly, it c...
load flow not converging if the load type is constant PQ
This could be the possible reason: Improper initialization of the load flow: If the load flow is not initialized properly, it c...
1 year 前 | 0
已回答
how can i plot occupancy grid for an autonomous vehicle
Hello Mohamed, Please checkout the example given in the below link for creation of occupancy grid: https://www.mathworks.com/h...
how can i plot occupancy grid for an autonomous vehicle
Hello Mohamed, Please checkout the example given in the below link for creation of occupancy grid: https://www.mathworks.com/h...
1 year 前 | 0
已回答
dwt2 function for image compression
Hello Izabela, For reading and displaying your own custom image "WeeksHallSmall.jpg" you can use the below code: z = imread("W...
dwt2 function for image compression
Hello Izabela, For reading and displaying your own custom image "WeeksHallSmall.jpg" you can use the below code: z = imread("W...
1 year 前 | 0
已回答
MATLAB Contour3 plot to 3D PDF
Hello William, According to my understanding you are using FIG2U3D function and are still not able to convert it in 3D pdf. I ...
MATLAB Contour3 plot to 3D PDF
Hello William, According to my understanding you are using FIG2U3D function and are still not able to convert it in 3D pdf. I ...
2 years 前 | 0
已回答
How could I show tension in a bunjee chord in simulink and simscape?
Hi Michael, I understand that you are looking for a block that can enable the tension transfer. Link to the documentation of t...
How could I show tension in a bunjee chord in simulink and simscape?
Hi Michael, I understand that you are looking for a block that can enable the tension transfer. Link to the documentation of t...
2 years 前 | 0
已回答
sqlwrite: INSERT statement exceeds the maximum allowed number of 1000 row values..
As per my understanding it is a limitation of SQL Server, which they have in place to reduce compilation times. Refer to the f...
sqlwrite: INSERT statement exceeds the maximum allowed number of 1000 row values..
As per my understanding it is a limitation of SQL Server, which they have in place to reduce compilation times. Refer to the f...
2 years 前 | 0
已回答
We are using for-iterator loop, display is showing correct result but while analyzing graph we got to know it is having spikes.
As per my understanding the "assignment block" copies the input vector and update it in each step due to which these spikes occu...
We are using for-iterator loop, display is showing correct result but while analyzing graph we got to know it is having spikes.
As per my understanding the "assignment block" copies the input vector and update it in each step due to which these spikes occu...
2 years 前 | 0