Community Profile

photo

Saurabh Gupta


MathWorks

57 total contributions since 2016

Saurabh Gupta's Badges

  • Revival Level 1
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Creating a custom implementation of an Inport block
It should be doable using a Mask. Edit box parameters allow DataTypeStr type, which you can use for providing Data Type options ...

presque 2 ans ago | 0

Answered
Change the buffer size during a simulation
Buffer block dialog parameters can not be modified while the simulation is running or paused. You can observe this by trying to ...

presque 2 ans ago | 0

| accepted

Answered
How can I tell EmbeddedCoder/SimulinkCoder to not evaluate expressions containing Matlab tunable parameters when generating C-code from Simulink?
For tunability in code generation, the parameter needs to be a variable. Parameters specified as expressions are evaluated and i...

presque 2 ans ago | 0

Answered
How can I input a vector in a control port of a switch when "Allow different data input sizes[...]" is active?
Adding to Swaroop's points, I think the crux of the errors is this message: _"Simulink cannot propagate the variable-size mode f...

presque 2 ans ago | 0

Answered
On double looping and confusion with cell arrays and cumtrapz() function
Most of your original code is element-wise operation on vector/matrix elements, so I don't see any reason to use a loop to handl...

presque 2 ans ago | 0

Answered
How do I reset legoev3 connection type?
The 'legoev3' command has options to specify the connection type (refer to following link for example). When used without any op...

presque 2 ans ago | 0

Answered
vl_compilenn error
It looks like 'vl_compilenn' is from a third-party repo called 'MatConvNet' which has its own forums at the following links. You...

presque 2 ans ago | 0

Answered
Cannot connect to serial [Linux]
It looks like you are not able to launch <https://www.mathworks.com/help/matlab/matlab_env/manage-your-add-ons.html Add-Ons Mana...

presque 2 ans ago | 0

Answered
Integration doubt in SIMULINK.
Simulink Engine is designed to work with Signals which functions of time and the available Integrator blocks calculate integrals...

presque 2 ans ago | 0

Answered
Peak envelope calculation of a signal
The following documented example should be helpful. It explains the process of envelope detection using MATLAB as well as Simuli...

presque 2 ans ago | 0

Answered
How do I run Labview code in MATLAB?
This question may be better suited for an NI forum. To help you get started, the following post discusses a similar question and...

presque 2 ans ago | 0

| accepted

Answered
Why should I change the mutation function to '@mutationadaptfeasile' when using lower and upper bounds?
The following documentation explains that _"default mutation function, mutationgaussian, is only appropriate for unconstrained m...

presque 2 ans ago | 0

Answered
Plotting index-determined points in a continuous line plot in a different color
Generally speaking, line plot functions combine adjoining points, based on the input vectors, into line segments. All you need t...

presque 2 ans ago | 1

Answered
Simulink: Sending Android Camera Data To Workspace
Both external mode simulation and deployment are based on code generation. It seems that the ' Video to Workspace' block is igno...

presque 2 ans ago | 0

| accepted

Answered
is it possible to show power flow direction in real time like PowerWorld software in Simulink?
I don't think there is any functionality implemented as a part of Simulink that could integrate with 'PowerWorld'. Possibly, the...

presque 2 ans ago | 0

| accepted

Answered
Hi all, I want to assign variables to my single column table data of strings in matlab
As I understand, you have a column vector of unique strings and you want to determine an index in the form of "Axx to Zxx" for e...

presque 2 ans ago | 0

Answered
Arduino libraries stopped working in Simulink
From the errors, it looks like you are calling C++ functions in lcd_wrapper.c, which is C source file. You may want to use <http...

presque 2 ans ago | 0

Answered
Creating a standalone .exe of an .m file that calls a simulink model
One way would be to generate code from MATLAB Code and Simulink model independently, integrate them manually and compile them to...

presque 2 ans ago | 4

| accepted

Answered
How to efficiently access data from ROS PoseArray Messages?
You could use <https://www.mathworks.com/help/releases/R2017a/matlab/ref/arrayfun.html arrayfun> to perform the operations. I do...

presque 2 ans ago | 0

Answered
To-File block with Raspberry Pi 3 is not working after Deploying model to Hardware
You could try the following steps: 1) Check the generated code and see if you can find any reference to the MAT File that you...

presque 2 ans ago | 2

| accepted

Answered
Mex to S-function
You can create an S-function block from your C++ code using the Legacy Code tool. <https://www.mathworks.com/help/simulink/sf...

presque 2 ans ago | 0

Answered
Error using glmfit: Second column in Y?
As the error suggests, Y should 1) either be a binary vector i.e. a vector of 0s and 1s only (other values, like 2, are not ...

presque 2 ans ago | 0

Answered
[Eyetracker] How can I extract specific lines of text data with multiple headers
Your file format is a bit mixed up, so you will have to do some processing to separate the related data rows and match them with...

presque 2 ans ago | 0

Answered
Applying composite midpoint rule in two dimensions
The error occurs at the following line c(n,m) = ([n m]-(1/2)).*h; The reason is that lhs is a scalar (single element of...

presque 2 ans ago | 0

Answered
How can I create a non-fully connected neural network?
You can create a custom neural network and control the connections as per your requirement. The following documentation describe...

presque 2 ans ago | 0

| accepted

Answered
Coverage > Results pane can not find Enable cumulative data collection.
If you look at the Configuration Parameters editor, you will notice that it has two appropriately named tabs: Commonly Used Para...

presque 2 ans ago | 0

Answered
Make 3-D annotations independent of viewpoint
Conceptually speaking, I think there is a fundamental difference between what you want to achieve and the way the plot is being ...

presque 2 ans ago | 0

Answered
How to generate a Simulink S-Function programmatically?
You should be able to use a combination of instructions in the following two documentation sections to write a script that gener...

presque 2 ans ago | 0

| accepted

Answered
Signal names not displayed in target scope
I think the below post answers your question. <https://www.mathworks.com/matlabcentral/answers/297727-how-can-i-name-and-disp...

environ 2 ans ago | 0

Answered
error using edge sobel
As the error mentions, <https://www.mathworks.com/help/releases/R2016b/images/ref/edge.html#buo5g3w-3 the variable 'I' is expect...

environ 2 ans ago | 0

Load more