Customer Success Engineer @ MathWorks

Professional Interests: Computational Thinking, Teaching, Image Processing, Data Science

Personal Interests: Books, Sports, Adventure and Photography

Answered

Inconsistent behaviour in fprintf output (scripts and LiveScripts)?

To get the same output for this example as in the command window, one possible approach is to wrap your code inside a function. ...

Inconsistent behaviour in fprintf output (scripts and LiveScripts)?

To get the same output for this example as in the command window, one possible approach is to wrap your code inside a function. ...

2 months ago | 0

Answered

Table consist of strings and numerics

Once you setup the table, you can use sprintf to create the concatenated string. You would have to decide how will passing the i...

Table consist of strings and numerics

Once you setup the table, you can use sprintf to create the concatenated string. You would have to decide how will passing the i...

2 months ago | 0

Solved

Find the sum of the elements in the "second" diagonal

Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

2 years ago

Answered

how to compare elements in an array respectively

If I understand correctly, you are comparing the arrays element wise and then deciding based on a condition. One approach could ...

how to compare elements in an array respectively

If I understand correctly, you are comparing the arrays element wise and then deciding based on a condition. One approach could ...

2 years ago | 1

Answered

How i can write glcm features in matlab to excel sheet?

I would suggest using "writetable" and setting the "WriteVariableName" argument to false to accomplish this. For example: Assu...

How i can write glcm features in matlab to excel sheet?

I would suggest using "writetable" and setting the "WriteVariableName" argument to false to accomplish this. For example: Assu...

2 years ago | 0

Answered

How to retrieve table data based on matched variable

You are correct in that you can use logical indexing to solve this without loops. Here is a possible approach: % Extract logica...

How to retrieve table data based on matched variable

You are correct in that you can use logical indexing to solve this without loops. Here is a possible approach: % Extract logica...

2 years ago | 1

Submitted

Code Examples from "Video Processing in MATLAB"

Demos from the Video introducing Video Processing in MATLAB

2 years ago | 43 downloads |

Answered

How to append lines to an existing MessageBox

The following is a possible approach to append messages in the msgbox after its creation. % Create a message box h = msg...

How to append lines to an existing MessageBox

The following is a possible approach to append messages in the msgbox after its creation. % Create a message box h = msg...

3 years ago | 0

Answered

Testing Data for Power Law Relationship

*Part 1:* A few possible approaches to approaching this is as follows: *a) Without the Curve Fitting Toolbox* i) _Using po...

Testing Data for Power Law Relationship

*Part 1:* A few possible approaches to approaching this is as follows: *a) Without the Curve Fitting Toolbox* i) _Using po...

3 years ago | 0

| accepted

Answered

How to read xlsx file after the date

A possible approach would be to pull out the date from the file name and then sort it. Then, keep a track of the order and read ...

How to read xlsx file after the date

A possible approach would be to pull out the date from the file name and then sort it. Then, keep a track of the order and read ...

3 years ago | 0

Answered

Setdiff with two datasets, looking at only certain columns

You can use the ' |setdiff|' and ' |intersect|' functions with logical indexing to get the output you desire. As an example: ...

Setdiff with two datasets, looking at only certain columns

You can use the ' |setdiff|' and ' |intersect|' functions with logical indexing to get the output you desire. As an example: ...

3 years ago | 0

| accepted

Answered

How to modify a variable with a gui?

In the callback function for the button, use the |assignin| function to modify the value in the base workspace. For ex. ...

How to modify a variable with a gui?

In the callback function for the button, use the |assignin| function to modify the value in the base workspace. For ex. ...

3 years ago | 0

Answered

Comparison for/vectorization- some general advice

The result you observe could be because preallocation the second time appears to be faster than the first. So, timing each allo...

Comparison for/vectorization- some general advice

The result you observe could be because preallocation the second time appears to be faster than the first. So, timing each allo...

3 years ago | 0

| accepted

Answered

How can I do a loop to extract vectors from a matrix?

The reason only the last one is stored at the end of the for loop is that 'c' is being overwritten each time the loop iterates. ...

How can I do a loop to extract vectors from a matrix?

The reason only the last one is stored at the end of the for loop is that 'c' is being overwritten each time the loop iterates. ...

3 years ago | 1

Answered

Splitting array based on a single column's condition

If the transition point in the fourth column is known to be 0, then you can consider splitting the data by the location of these...

Splitting array based on a single column's condition

If the transition point in the fourth column is known to be 0, then you can consider splitting the data by the location of these...

3 years ago | 0

| accepted

Answered

How do I change the yaxis exponent when using a double y-axis plot?

Try setting the exponent as follows: ax.YAxis(2).Exponent=3; instead of ax.YAxis.Exponent = 3; This sets the expo...

How do I change the yaxis exponent when using a double y-axis plot?

Try setting the exponent as follows: ax.YAxis(2).Exponent=3; instead of ax.YAxis.Exponent = 3; This sets the expo...

3 years ago | 4

Answered

Plot surface with 3 vectors x,y,z?

Did you try plot3 or scatter3? If you are looking to simply "plot" the 1000 points where the triplet (x,y,z) represents a poi...

Plot surface with 3 vectors x,y,z?

Did you try plot3 or scatter3? If you are looking to simply "plot" the 1000 points where the triplet (x,y,z) represents a poi...

3 years ago | 1

Answered

I don't find the error in my function, (index exceed matrix dimensions)?

I am assuming that you are calling the function with vector arguments such as: Azimuth([10,20],[30,40]). Now, there is an ex...

I don't find the error in my function, (index exceed matrix dimensions)?

I am assuming that you are calling the function with vector arguments such as: Azimuth([10,20],[30,40]). Now, there is an ex...

3 years ago | 0

Answered

bar and histograms for categorical data

MATLAB by default places categories in alphabetical order. One of the possible approaches to switching the order of the bars is...

bar and histograms for categorical data

MATLAB by default places categories in alphabetical order. One of the possible approaches to switching the order of the bars is...

3 years ago | 0

| accepted

Answered

Plot a signal, manually brush data range, and generate new variable

To programmatically implement selecting brush data, saving it to a newly created variable, you can try the following approach: ...

Plot a signal, manually brush data range, and generate new variable

To programmatically implement selecting brush data, saving it to a newly created variable, you can try the following approach: ...

3 years ago | 1

Answered

Improving circle detection with imfindcircle

The following link may have some useful tips on circle detection using *imfindcircles* and *regionprops*: <https://www.mathwo...

Improving circle detection with imfindcircle

The following link may have some useful tips on circle detection using *imfindcircles* and *regionprops*: <https://www.mathwo...

3 years ago | 0

Answered

'Plots' not a recognized parameter in deep learning network training

This may be MATLAB version related. Which version of MATLAB are you trying to execute this on? The ability to monitor trainin...

'Plots' not a recognized parameter in deep learning network training

This may be MATLAB version related. Which version of MATLAB are you trying to execute this on? The ability to monitor trainin...

3 years ago | 1

| accepted

Answered

How can I get the histeq function to ignore NaN values?

It appears that MATLAB warns you about using *histeq* on a matrix with NaNs and replaces them to 0. I would suggest the follo...

How can I get the histeq function to ignore NaN values?

It appears that MATLAB warns you about using *histeq* on a matrix with NaNs and replaces them to 0. I would suggest the follo...

3 years ago | 0

Answered

Photogrammetry, distance in image

A possible approach would be to use the function 'regionprops' after some basic pre-processing: I = imread('edges.png...

Photogrammetry, distance in image

A possible approach would be to use the function 'regionprops' after some basic pre-processing: I = imread('edges.png...

3 years ago | 0

| accepted

Answered

How should I denoise the image to extract the characters from the image?

A possible approach to solve the above problem is as follows: % Read in the image Iin = rgb2gray(imread('test.png')); ...

How should I denoise the image to extract the characters from the image?

A possible approach to solve the above problem is as follows: % Read in the image Iin = rgb2gray(imread('test.png')); ...

3 years ago | 0

Answered

Detect Edge in picture with low contrast

The image would need pre-processing before passing it to one of the edge detectors. I would suggest trying to enhance the contr...

Detect Edge in picture with low contrast

The image would need pre-processing before passing it to one of the edge detectors. I would suggest trying to enhance the contr...

3 years ago | 1

Answered

How to set a variable network name for CNNs with trainNetwork

When you use: [networkName, trainInfo] = trainNetwork(myData, layers, options); the *networkName* can be any variable...

How to set a variable network name for CNNs with trainNetwork

When you use: [networkName, trainInfo] = trainNetwork(myData, layers, options); the *networkName* can be any variable...

3 years ago | 0

Answered

Calling bowtie2 from matlab

Can you try running bowtie2 from matlab using the 'system' command. That is, [a,b] = system('bowtie2 -h') Also, there i...

Calling bowtie2 from matlab

Can you try running bowtie2 from matlab using the 'system' command. That is, [a,b] = system('bowtie2 -h') Also, there i...

3 years ago | 0

Answered

Scale a Legend with the underlying Axis

The observation that the size of the legend scales with the Font Size is true. Is there a reason you would prefer not to change...

Scale a Legend with the underlying Axis

The observation that the size of the legend scales with the Font Size is true. Is there a reason you would prefer not to change...

3 years ago | 0

Answered

I want to merge the content of two tables with identical variables, but for a given key variable value the columns 1:N in table 1 are filled and columns N+1:end in the other.

Merging 2 tables on the basis of key variables and retaining only the common rows can be achieved using the 'innerjoin' function...

I want to merge the content of two tables with identical variables, but for a given key variable value the columns 1:N in table 1 are filled and columns N+1:end in the other.

Merging 2 tables on the basis of key variables and retaining only the common rows can be achieved using the 'innerjoin' function...

3 years ago | 0