Community Profile

### MathWorks

163 total contributions since 2019

I am a Software Engineer here at The MathWorks.

My areas of interest are Image Processing, Pattern Recognition, Computer Vision & Graphics, and plotting.

DISCLAIMER: Any advice or opinions here are my own and in no way reflect that of The MathWorks.

View details...

Contributions in
View by

save the output figure as binary image
The below code will save the figure as an image in the worksapce. clc; close all; rectangle('Position',[0 0 539 539], 'FaceCol...

3 dagar ago | 0

| accepted

can't print pictures
It seems the paths below "C:\Users\panchaopang\Documents\MATLAB\" "C:\Users\panchaopang\Documents\mtex-5.2.5\mtex-5.2.5\geome...

5 dagar ago | 0

| accepted

You should not use the variable name input as it shadows a MATLAB built-in function. Use the example code below. close all; clc...

5 dagar ago | 0

| accepted

Image Saving to Variable in Workspace (NOT imwrite)
Use rescale, you can also specify the lower and upper range of scaling. LLLL = rescale(sp_possible_quadtree);

6 dagar ago | 0

| accepted

Add 2d plots along a 3d helix
Use this close all; clc; r=93.36; theta=0:pi/50:10*pi; %Trajectory in x-direction x=-r.*cos(theta); %Trajectory in y-direc...

6 dagar ago | 0

| accepted

Removing a TEX arrow symbol from String
Your code is almost correct but, before erasing you need to check whether the h.String contains \leftarrow or \rightarrow. Use t...

6 dagar ago | 0

| accepted

threshold images and save as jpeg in loop
Use imwrite instead of save. for i = 1:numel(I) % Obtain red matrix of image filename = fullfile(path, I(i).name); ...

6 dagar ago | 0

| accepted

How to open a dialog box when saving multiple figures?
Here is an example close all; clc; H = figure; surf(peaks); filter = {'*.fig'}; savefig(H, uiputfile(filter));

6 dagar ago | 0

3D scatter with 2 different data sets as different colours
Firstly your PLMS.xlsx file has some NaN values. Moreover, the variable x is identical with xx, y is identical with yy, and so o...

7 dagar ago | 0

| accepted

Go through the table with a loop and change values
ds = record ("xlsfile", "dataset.csv"); data = dataset2table(ds); [rows, cols] = size(data); newData = data; for i = 1: ro...

7 dagar ago | 1

Recommended Toolboxes to recognize and classify images using neural networks
In general you will be needing Image Processing Toolbox, Computer Vision Toolbox, Statistics and Machine Learning Toolbox and De...

7 dagar ago | 0

subscript in ylabels of heatmap
Starting in R2019a, heatmaps interpret text using TeX markup instead of displaying the literal characters. Therefore it seems yo...

8 dagar ago | 0

| accepted

How to filter out NaNs on images ?

9 dagar ago | 0

| accepted

while executing my code there is no error but i did not get any output
You are not getting any output because you are trying to display the vector l_p as an image. It seems you are trying to 2-D calc...

9 dagar ago | 0

Quantization HSV Space by assigning 8 level each to hue, saturation and value to give a quantized HSV space with 8x8x8=512 histogram bins
Here is an example of quantization of the HSV colorspace clc; close all; rgbImage = imread('peppers.png'); hsvImage = rgb2hsv...

9 dagar ago | 0

| accepted

problem using medfilt2
Your Az vector is mainly concentrated around 169, therefore normal median filtering destroys the sudden peaks. Using Padding opt...

9 dagar ago | 1

| accepted

I want to multiply two matrices by sliding the smaller matrix on the larger one through neighborhood operations
It seems the functon conv2 does what you are trying to achieve. THETA_F1 = randi(512, 642); % Demp data THETA_F2 = randi(245, ...

9 dagar ago | 0

Cropping out the image/generating image the same size as the matrix it comes from
Question 1: Saving and resizing your matrix % Resizing image matrix yourMatrixResized = imresize(yourMatrix, [512, 512], 'bicu...

9 dagar ago | 0

| accepted

How can I draw on two ROI to create a mask on the same image?
You can easily combine those two masks using the imadd() function. Refer the code below close all ; clc; I = imread('cameraman...

10 dagar ago | 0

How to use imshow in a panel?
You can create a child uiaxis for the uipanel parent and specify the uiaxis handle as parent while using imshow. frameRGB = rea...

10 dagar ago | 1

PSNR Calculation without using function
You are getting 3 PSNR values because your "input.png" and "groundTruth.png" are 3 channel RGB images and your code is calculati...

10 dagar ago | 1

| accepted

How to animate the plot back and forth for unlimited cycles?
Define a figure CloseRequestFcn like below function my_closereq(src, callbackdata) selection = questdlg('Close This Figure?',....

10 dagar ago | 0

| accepted

Histogram-based RGB segmentation
I am not sure about which algorithm you are trying to implement but below is an example of histogram based segmentation using Ot...

13 dagar ago | 0

| accepted

How to load multiple excel files with multiple excel sheets and store it in matlab faster?
If you have Parallel Computing Toolbox you can use parfor loop instead of normal for loop. That might decrease the time to read ...

13 dagar ago | 0

Manipulation of RGB matrices possibly using NaN values?
You can achieve this via ROI processing and defining a function handle. See the demo code below. (Download the attached image) ...

14 dagar ago | 0

| accepted

help me to Showing the Cloud !
Remove these lines before function defination. clear clc Also can you post your code instead of attaching a screenshot?

14 dagar ago | 1

| accepted

What is the difference between "dwt2()" and "wavedec2()"?
Basically dwt2() applies 2-D discreet wavelet transformation on the image and provides the approximation and detail coefficients...

15 dagar ago | 0

| accepted

Controlling the size of legend markers separately from the font size of legend labels
A new MATLAB graphics system is introduced from MATLAB R2014b onwards. Your code will work for the older system I guess. Use th...

15 dagar ago | 0

| accepted