Community Profile

### MathWorks

Last seen: Today Active since 2020

I am an Application Support Engineer at Mathworks.
Disclaimer : Any articles/ideas/opinions here are my own and in no way reflect that of MathWorks.

All

#### Content Feed

View by

HOW CAN I CHANGE THE COLOR OF DIFFERENT DATA?
Hi Pul, If you would like to color the vertical bars in an errorbar plot individually, you could try replicating the errorbar p...

4 months ago | 0

| accepted

View the segmented object and corresponding 3D bounding box together
Hi Vinit, You could use the drawcuboid function to construct your cuboidal bounding box around a volume. I am attaching an exam...

4 months ago | 0

| accepted

How to read row1 as datetime
Hi, To read the first row in the specified format, you could try: t = readtable('yourDataOnlyRow1','Format','%s %s %{mm/dd/yyy...

4 months ago | 0

| accepted

Input do not consider first X entries Simulink
Hi, Please check the model layout below: The "Counter" subsystem counts the number of iterations, then I have used an if-els...

4 months ago | 1

| accepted

What exactly is stored in the tdata.T parameter of the output of maketform?
Hi, An affine transformation is described in mathematical form as: Here, [x y] are the transformed coordinates while [w z] a...

4 months ago | 0

| accepted

How can I clean the data that bwconncomp provides?
Hi Hannah, I believe you could uitilize the PixelIdxList information that bwconncomp outputs as part of a struct. This list is ...

4 months ago | 0

| accepted

How can i create a table and store random values in each entry?
Hi, You could try the following: f = figure; uit = uitable(f,'Data',randi(100,10,3)); %Creates a 10 by 3 table with random en...

4 months ago | 0

Hi, I understand that you are unable to open Simulink and it is unresponsive. The initial troubleshooting steps you can attempt...

4 months ago | 0

Inverse STFT discrete window sample times only. How to fix error of current continuous sample time.

4 months ago | 1

Plot not showing up for last section when publishing
Hello, The issue is not reproducible at my end. Could you share a snippet of code that reproduces the issue at your end? Also, ...

4 months ago | 0

Unable to resolve the name dsp.FIRFilter.
Hi Veeresh, The dsp.FIRFilter system object is part of the DSP System toolbox which is a separate licensed product. You can how...

4 months ago | 0

Laplace–Stieltjes transform

4 months ago | 0

| accepted

Error using matlabfunction with piecewise functions and intervals
Hi Nicolas, Referring to the documentation for matlabFunction, one can see that there exists an argument called "Optimize". By ...

4 months ago | 1

| accepted

How make symbolic variables to a power equal to zero
Hello, I believe the below information will be helpful: syms t; sympol = 10 * t^2; deg = numel(sym2poly(sympol)) - 1; %sym2...

4 months ago | 0

Store data tips of Uiaxes into array
Hi, Please check the following answer : How can I select multiple points using the Data Cursor and export the coordinates to th...

4 months ago | 0

combining 2 3D Plot
Hi, Please try the below code to achieve what you have asked for: figure [X,Y,Z] = sphere(16); x = [0.5*X(:); 0.75*X(:); X(:...

4 months ago | 0

Combine the hole and its parent boundary extracted from bwboundaries
Hello, It is my understanding that you would like to remove the child-hole objects from the output of "bwboundaries". For this,...

4 months ago | 0

| accepted

Hello, If you want to mimic the behaviour of Simulink blocks using a MATLAB script, it might be helpful to look at the underlyi...

4 months ago | 0

How can I get the instantaneous step size value in variable step solver at a simulink model?
Hi, you can use the "Clock" block in Simulink to get the current simulation time and the "memory" block to store this value for ...

4 months ago | 0

Live Script does not work

4 months ago | 0

Custom object class array initilization within Simulink Matlab Function Block
Hi Michael, According to the documentation for MATLAB Classes for Code generation, creation of arrays of objects is not support...

5 months ago | 0

| accepted

2 Video Display side by side in a Custom User Interface
Hi, Please check the attached code. It runs the two videos side by side, however the rotation effect is removed. I hope this he...

5 months ago | 0

| accepted

How do you delete and space characters in Matlab Virtual Keyboard ?
Hi, Just a naive try at what you asked, i hope it helps! function AddLetter(letter) %Called when letter press...

6 months ago | 0

Trapezoid Rule method errors
Hi, The error you have posted occurs because the integral: trapz(r,B,2) evaluates to 0. This is then used as the dimension ...

6 months ago | 0

Grouping vector elements that satisfy multiple conditions
Hi, I have written a small script which tries to group the vector A according to the conditions you have established, please go...

6 months ago | 0

How to see the values of the Parameters defined as variables in the Examples given by Simulink?
Hi, "power" is struct with 7 fields, you can see the values of these fields as such (given that power variable exists in the ba...

6 months ago | 0

| accepted

imnoise gaussian variance vs normal variance?
Hi, So the formula for adding Gaussian noise to the image by "imnoise" is given by: output = input + sqrt(v)*randn(size(input)...

6 months ago | 0

| accepted

select bus elements programmatically
Hi, You can select the signals to be passed through the bus selector by using: %Say we want to choose the signals 1 and 2 to p...

6 months ago | 0

| accepted