#Image Processing

#Learner

Answered

How can we accurately estimate execution time?

One way: Using Stoptwatch Timer tic ...... toc https://in.mathworks.com/help/matlab/ref/tic.html More: Function execution ...

How can we accurately estimate execution time?

One way: Using Stoptwatch Timer tic ...... toc https://in.mathworks.com/help/matlab/ref/tic.html More: Function execution ...

en dag ago | 0

| accepted

Answered

how do i select only a certain area of an image and then use it to get the mean pixel value?

This is all about how you can correctly segregate ROI, what the red fields refer to, as there is no clear boundary in the area o...

how do i select only a certain area of an image and then use it to get the mean pixel value?

This is all about how you can correctly segregate ROI, what the red fields refer to, as there is no clear boundary in the area o...

en dag ago | 1

Answered

how to create two sinusoidal signals

Hint: A=.....%Amplitude t=0:0.01:1; %time ph=......%Set Phase difference w=.....% Frequency sin1=................% Asin(wt...

how to create two sinusoidal signals

Hint: A=.....%Amplitude t=0:0.01:1; %time ph=......%Set Phase difference w=.....% Frequency sin1=................% Asin(wt...

en dag ago | 1

| accepted

Answered

Plotting a line moving down straight vertically. Both the lines are not rotating in symmetry.

"Both the lines are not rotating in symmetry." plot([-L1*cosd(t1),0],[L1*sind(t1),0]); % First Line %..............^changed he...

Plotting a line moving down straight vertically. Both the lines are not rotating in symmetry.

"Both the lines are not rotating in symmetry." plot([-L1*cosd(t1),0],[L1*sind(t1),0]); % First Line %..............^changed he...

2 dagar ago | 0

Answered

NOT GETTING PLOT , Actually i want a to find out the change in density,temp, pessure with altitude ( standard atmospheric properties). then use the density for other formula. plzz help . standard atmospheric prop. code given by friend,not understand

This is a function file, you need to pass the correct specific input values to get the output. Once I tried with a random array ...

NOT GETTING PLOT , Actually i want a to find out the change in density,temp, pessure with altitude ( standard atmospheric properties). then use the density for other formula. plzz help . standard atmospheric prop. code given by friend,not understand

This is a function file, you need to pass the correct specific input values to get the output. Once I tried with a random array ...

2 dagar ago | 0

| accepted

Answered

No values for RK method

There is no numerical data within Xg and Xs (all are NaN), same for 2nd figure also, hence there is no plots. Your next goal sho...

No values for RK method

There is no numerical data within Xg and Xs (all are NaN), same for 2nd figure also, hence there is no plots. Your next goal sho...

3 dagar ago | 0

Answered

how to plot graph from text data as shown in the image

Try this way in MATLAB edit window %Load the file A=readmatrix('file.txt'); Get the x and y values x=A(:,1); x=A(:,2); Pl...

how to plot graph from text data as shown in the image

Try this way in MATLAB edit window %Load the file A=readmatrix('file.txt'); Get the x and y values x=A(:,1); x=A(:,2); Pl...

3 dagar ago | 0

| accepted

Answered

How Can I mix my matrix randomly ?

One way: Here data is 100 by 100 matrix mat_data=data(:); result=reshape(mat_data(randperm(100*100)),[100,100]);

How Can I mix my matrix randomly ?

One way: Here data is 100 by 100 matrix mat_data=data(:); result=reshape(mat_data(randperm(100*100)),[100,100]);

4 dagar ago | 0

| accepted

Answered

Error: Array indices must be positive integers or logical values

Q = 0.16; %[m^3/s] flowraten r_2 = 0.25; %[m]Ydre radius D_2 = 0.50 %[m]Ydre diameter b_2 = 0.5 ...

Error: Array indices must be positive integers or logical values

Q = 0.16; %[m^3/s] flowraten r_2 = 0.25; %[m]Ydre radius D_2 = 0.50 %[m]Ydre diameter b_2 = 0.5 ...

4 dagar ago | 0

Answered

How i can plot the below sigmoid function?

It is all about specific parameter values how we know this, because we cannot be from the same subjective field. Define the t...

How i can plot the below sigmoid function?

It is all about specific parameter values how we know this, because we cannot be from the same subjective field. Define the t...

4 dagar ago | 0

Answered

Please, I would like to present my xlimit in a plot into scientific notation?

x_data=0:15000; plot(x_data); ax=gca; ax.XAxis.Exponent=3; See more option here https://in.mathworks.com/help/matlab/creat...

Please, I would like to present my xlimit in a plot into scientific notation?

x_data=0:15000; plot(x_data); ax=gca; ax.XAxis.Exponent=3; See more option here https://in.mathworks.com/help/matlab/creat...

4 dagar ago | 0

| accepted

Answered

I am trying to test a part of my code but it shows me this message ! how can i solve it , Help plz !

This is due to a name mismatch between the upper case or lower case in the custom function name. Matlab is case-sensitive. Modif...

I am trying to test a part of my code but it shows me this message ! how can i solve it , Help plz !

This is due to a name mismatch between the upper case or lower case in the custom function name. Matlab is case-sensitive. Modif...

4 dagar ago | 0

Answered

What is square Hankel matrix?

Do read here https://in.mathworks.com/help/matlab/ref/hankel.html

What is square Hankel matrix?

Do read here https://in.mathworks.com/help/matlab/ref/hankel.html

5 dagar ago | 0

Answered

Grouping rows into different matrices

G=mat2cell(M,10*ones(1,2000/10)) All are individual matrices, you have to save matrices in the cell array (easiest way)

Grouping rows into different matrices

G=mat2cell(M,10*ones(1,2000/10)) All are individual matrices, you have to save matrices in the cell array (easiest way)

5 dagar ago | 0

| accepted

Answered

Creating 3D graph

This way, see the surf plot Beta=rand(1,71); % Change Data, here random sample data Lambda=rand(101,1); % Change Data, here ra...

Creating 3D graph

This way, see the surf plot Beta=rand(1,71); % Change Data, here random sample data Lambda=rand(101,1); % Change Data, here ra...

5 dagar ago | 0

| accepted

Answered

how to get average of multiple rows and subtract from one group of average to another

As you mentioned, the size of the data is "10039 columns, 64 rows" Load the file using readmatrix or load function. Easiest Wa...

how to get average of multiple rows and subtract from one group of average to another

As you mentioned, the size of the data is "10039 columns, 64 rows" Load the file using readmatrix or load function. Easiest Wa...

5 dagar ago | 0

Answered

How to assign NaN to an empty cells in array for data arrangement?

Please try with readtable, it replaces all missing data with NaN. Note: Text files have unwanted header descriptions, you can...

How to assign NaN to an empty cells in array for data arrangement?

Please try with readtable, it replaces all missing data with NaN. Note: Text files have unwanted header descriptions, you can...

5 dagar ago | 0

Answered

How to generate a normal matrix?

You can do this in many ways, one way is as follows Hope, for the last corner mat(1,:)= ....element, you can manipulate: Suffi...

How to generate a normal matrix?

You can do this in many ways, one way is as follows Hope, for the last corner mat(1,:)= ....element, you can manipulate: Suffi...

5 dagar ago | 1

| accepted

Answered

How to Preallocate this loop?

xaxis=zeros(1,ncut); yaxis=zeros(1,ncut); wig=zeros(ncut,ncut); More: Avoid using xaxis and yaxis as variable names, there ma...

How to Preallocate this loop?

xaxis=zeros(1,ncut); yaxis=zeros(1,ncut); wig=zeros(ncut,ncut); More: Avoid using xaxis and yaxis as variable names, there ma...

5 dagar ago | 0

Answered

For loop with use of larger than

Now I want to calculate the average data value of the pressure for every small angle change. Hint: Do modify accordingly angl...

For loop with use of larger than

Now I want to calculate the average data value of the pressure for every small angle change. Hint: Do modify accordingly angl...

6 dagar ago | 0

Answered

The graph I'm trying to create is empty

Here loop can be avoided (Recomended) t = 0:1:20 y =50*1.15.^t; figure,plot(t,y,'g') title('Voltage vs Time') xlabel('Time(...

The graph I'm trying to create is empty

Here loop can be avoided (Recomended) t = 0:1:20 y =50*1.15.^t; figure,plot(t,y,'g') title('Voltage vs Time') xlabel('Time(...

6 dagar ago | 0

Answered

How to change LineWidth and MarkerSize in plot fit curve ?

Can you try this way? figure,plot(f,'r--'); hold on; plot(x,y,'^b','MarkerSize',10); May be because of different class, her...

How to change LineWidth and MarkerSize in plot fit curve ?

Can you try this way? figure,plot(f,'r--'); hold on; plot(x,y,'^b','MarkerSize',10); May be because of different class, her...

6 dagar ago | 0

| accepted

Answered

How to calculate all the numbers in an array with some conditions?

"The problem is I need the value of phi is restricted between-2pi and 2pi. (The angle value (th) I stated was 20 degree but it c...

How to calculate all the numbers in an array with some conditions?

"The problem is I need the value of phi is restricted between-2pi and 2pi. (The angle value (th) I stated was 20 degree but it c...

6 dagar ago | 0

Answered

Counting the amount of overlap for 2D surfaces

This way: a=1:20; b=1:180; [x,y]=meshgrid(a,b); data=randi(100,[180,20,20]); tiledlayout(5,4);% 20 Plots for i=1:20 ...

Counting the amount of overlap for 2D surfaces

This way: a=1:20; b=1:180; [x,y]=meshgrid(a,b); data=randi(100,[180,20,20]); tiledlayout(5,4);% 20 Plots for i=1:20 ...

7 dagar ago | 0

Answered

how to extract the area of highlighted circle from the original image? I don't want to include part 2 area. I have attached original file along with the highlighted file

This one: #Step 1: Morphological Operation to remove those unwanted Region (You may avoid Morpho operation. Please see the dif...

how to extract the area of highlighted circle from the original image? I don't want to include part 2 area. I have attached original file along with the highlighted file

This one: #Step 1: Morphological Operation to remove those unwanted Region (You may avoid Morpho operation. Please see the dif...

7 dagar ago | 0

| accepted

Answered

How to Change Array Values with some Random numbers

K=randi([min_value max_value],1,12)

How to Change Array Values with some Random numbers

K=randi([min_value max_value],1,12)

7 dagar ago | 0

Answered

How can I change 'y axis' into 'Probability', not the 'number' when I use 'hist(variable)' ?

Is there any sense? Let's suppose I have the following array > data data = 4 3 5 3 5 5 3 4 ...

How can I change 'y axis' into 'Probability', not the 'number' when I use 'hist(variable)' ?

Is there any sense? Let's suppose I have the following array > data data = 4 3 5 3 5 5 3 4 ...

7 dagar ago | 0

Answered

Convert ECG signal waveform into text file

Steps: %load the mat file data=load('mat_file.mat'); %Save the data in txt file dlmwrite('filename.txt',data)

Convert ECG signal waveform into text file

Steps: %load the mat file data=load('mat_file.mat'); %Save the data in txt file dlmwrite('filename.txt',data)

7 dagar ago | 0

Answered

How do I create a vector in which the exponet is increasing?

"something like 10^-1, 10^-.9,10^-.8 ..... 10^1" data=10.^(-1:0.1:1)

How do I create a vector in which the exponet is increasing?

"something like 10^-1, 10^-.9,10^-.8 ..... 10^1" data=10.^(-1:0.1:1)

7 dagar ago | 0