Answered

How can I reshape the given file into excel file ?

#Let's suppose final name is Test_CSV.csv data=readmatrix('Test_CSV.csv'); xlswrite('test_data.xlsx',data); You may extract ...

How can I reshape the given file into excel file ?

#Let's suppose final name is Test_CSV.csv data=readmatrix('Test_CSV.csv'); xlswrite('test_data.xlsx',data); You may extract ...

6 months ago | 1

Answered

How to convert complex single Image data into complex double image?

im2double() https://in.mathworks.com/help/matlab/ref/im2double.html

How to convert complex single Image data into complex double image?

im2double() https://in.mathworks.com/help/matlab/ref/im2double.html

6 months ago | 0

Answered

How can I detect black color and mark bounding box from overall gray image?

Foremost segment that Black ROI regions, then apply the following- #1 It can be done using regionprops https://in.mathworks.co...

How can I detect black color and mark bounding box from overall gray image?

Foremost segment that Black ROI regions, then apply the following- #1 It can be done using regionprops https://in.mathworks.co...

7 months ago | 1

| accepted

Answered

length(find((XM(2:end)>126.5 & XM(1:end-1)<126.5)｜ (XM(2:end)<126.5 & XM(1:end-1)>126.5)));

It represent the total elements in the vector (Except First One) XM(2:end) It represent the total elements in the vector (Exce...

length(find((XM(2:end)>126.5 & XM(1:end-1)<126.5)｜ (XM(2:end)<126.5 & XM(1:end-1)>126.5)));

It represent the total elements in the vector (Except First One) XM(2:end) It represent the total elements in the vector (Exce...

7 months ago | 0

Answered

Sym 1x1 in Matrix

That .... dot dot represents the continuation in same line Continue Long Statements on Multiple Lines

Sym 1x1 in Matrix

That .... dot dot represents the continuation in same line Continue Long Statements on Multiple Lines

7 months ago | 0

Answered

count how many pixel has value 255 in an image

data=GrayImage==255; total_pix=sum(data(:))

count how many pixel has value 255 in an image

data=GrayImage==255; total_pix=sum(data(:))

7 months ago | 1

| accepted

Answered

How to open .raw extension image file in matlab?

Try with hdrread function MATLAB Docs

How to open .raw extension image file in matlab?

Try with hdrread function MATLAB Docs

7 months ago | 0

| accepted

Answered

ploting between infected pepole and reproduction number

plot(dx,R0);

ploting between infected pepole and reproduction number

plot(dx,R0);

7 months ago | 0

| accepted

Answered

Interpolation of 2 sea temperature time series at different depths to create a 3d figure of time on the x-axis, depth on the y-axis, and temperature on the z-axis.

surf may help you. https://in.mathworks.com/help/matlab/ref/surf.html

Interpolation of 2 sea temperature time series at different depths to create a 3d figure of time on the x-axis, depth on the y-axis, and temperature on the z-axis.

surf may help you. https://in.mathworks.com/help/matlab/ref/surf.html

7 months ago | 0

Answered

I am new on MATLAB.....How to write this equation in the form of code in MATLAB? I have to find du/dt using euler's method

Please refer the below link (MATLAB Doc) https://in.mathworks.com/help/matlab/math/partial-differential-equations.html

I am new on MATLAB.....How to write this equation in the form of code in MATLAB? I have to find du/dt using euler's method

Please refer the below link (MATLAB Doc) https://in.mathworks.com/help/matlab/math/partial-differential-equations.html

8 months ago | 0

Answered

How can I establish a logical expression from given truth table using MATLAB?

#For Matrix Multiplication out=A*B+C'*B'; #For Array Multiplication out=A*.B+C'*.B';

How can I establish a logical expression from given truth table using MATLAB?

#For Matrix Multiplication out=A*B+C'*B'; #For Array Multiplication out=A*.B+C'*.B';

8 months ago | 0

Answered

How to select framework of an image?

You can consider a frame of selection, force remaining pixels to black(0) or white(255), let's suppose data is a gray image- d...

How to select framework of an image?

You can consider a frame of selection, force remaining pixels to black(0) or white(255), let's suppose data is a gray image- d...

8 months ago | 0

Answered

How to plot the matrix values in the form of a slice plane?

Please refer the surf plot, and change the plot properties accordingly. https://in.mathworks.com/help/matlab/ref/surf.html

How to plot the matrix values in the form of a slice plane?

Please refer the surf plot, and change the plot properties accordingly. https://in.mathworks.com/help/matlab/ref/surf.html

8 months ago | 0

Answered

Why do I get the error ' Unrecognized function or variable A'?

You have to pass the input arguments to the function. Please refer the following link to understand "How to the call function"...

Why do I get the error ' Unrecognized function or variable A'?

You have to pass the input arguments to the function. Please refer the following link to understand "How to the call function"...

8 months ago | 0

Answered

Importing and RGB image to matlab in the form image L(x,y)=[LR(x,y),LG(x,y),LB(x,y)]

LR=L(:,:,1); % First Slice: Red Component LG=L(:,:,2); % Second Slice: Green Component LB=L(:,:,3); % Third Slice: Blue Compon...

Importing and RGB image to matlab in the form image L(x,y)=[LR(x,y),LG(x,y),LB(x,y)]

LR=L(:,:,1); % First Slice: Red Component LG=L(:,:,2); % Second Slice: Green Component LB=L(:,:,3); % Third Slice: Blue Compon...

8 months ago | 1

Answered

RGBto XYZ CIE 1931 Code

Here CIE_image=rgb2xyz(RGB_image); Matlab Doc: Here

RGBto XYZ CIE 1931 Code

Here CIE_image=rgb2xyz(RGB_image); Matlab Doc: Here

8 months ago | 0

| accepted

Answered

how to save a figure plotted with matlab with best quality in .ppt or .pdf file?

One way: https://in.mathworks.com/help/matlab/creating_plots/save-figure-at-specific-size-and-resolution.html

how to save a figure plotted with matlab with best quality in .ppt or .pdf file?

One way: https://in.mathworks.com/help/matlab/creating_plots/save-figure-at-specific-size-and-resolution.html

8 months ago | 0

Answered

I want to divide every column element . for example 1nd element with 2nd then 2nd with 3rd and so on

#data is a column/row vector data1=circshift(data,[0 -1]); temp=data./data1; #Ignoring last element, as devide present by nex...

I want to divide every column element . for example 1nd element with 2nd then 2nd with 3rd and so on

#data is a column/row vector data1=circshift(data,[0 -1]); temp=data./data1; #Ignoring last element, as devide present by nex...

8 months ago | 0

| accepted

Answered

How can I plot a reverse x-axis on the same graph?

#Convert to strings x=[0 1 2 3 4 3 2 1 0]; y = 2*x; plot(y); data=string(x); set(gca,'xtick',1:length(x),'xticklabel',data...

How can I plot a reverse x-axis on the same graph?

#Convert to strings x=[0 1 2 3 4 3 2 1 0]; y = 2*x; plot(y); data=string(x); set(gca,'xtick',1:length(x),'xticklabel',data...

8 months ago | 0

| accepted

Answered

Smoothing a noisy signal

%% how to create a noisy data x = 0:0.1:20; %creating a dummy data y = sin(x); %finding a sine of the variable x n = randn(1,...

Smoothing a noisy signal

%% how to create a noisy data x = 0:0.1:20; %creating a dummy data y = sin(x); %finding a sine of the variable x n = randn(1,...

8 months ago | 0

Answered

loading text file in vector columns

May be no file "111.txt" exist in the current working directory. Please check again & confirm? exist('111.txt','file')

loading text file in vector columns

May be no file "111.txt" exist in the current working directory. Please check again & confirm? exist('111.txt','file')

8 months ago | 0

Answered

how to plot different R0 value in single graph

for i=1:length(...) Ro= ..%One data change, which allow to change the Ro, note that it must be an 1D array R=p*b/(b+...

how to plot different R0 value in single graph

for i=1:length(...) Ro= ..%One data change, which allow to change the Ro, note that it must be an 1D array R=p*b/(b+...

8 months ago | 0

Answered

Erlang distribution n=50 , m= 5; 6; k= 5; 9

Please set the typical values t=....; m=...; k=....; erlang_dist=t.^(k-1).*exp(-t/m)/(m.^k.*factorial(k-1)); plot(t,erlang...

Erlang distribution n=50 , m= 5; 6; k= 5; 9

Please set the typical values t=....; m=...; k=....; erlang_dist=t.^(k-1).*exp(-t/m)/(m.^k.*factorial(k-1)); plot(t,erlang...

8 months ago | 0

Answered

PIXEL counting at grey scaled picture

%Using Histogram (Considering 256 Levels) [counts,binLocations]=imhist(grayImage); pix_counts=sum(counts(200:end)) ## %% 2nd...

PIXEL counting at grey scaled picture

%Using Histogram (Considering 256 Levels) [counts,binLocations]=imhist(grayImage); pix_counts=sum(counts(200:end)) ## %% 2nd...

8 months ago | 0

| accepted

Answered

Object Segmentation using SegCaps

You can implement on any tool as per your expertise. Here is the complete reference in python (Just the reference) Reference Li...

Object Segmentation using SegCaps

You can implement on any tool as per your expertise. Here is the complete reference in python (Just the reference) Reference Li...

8 months ago | 0

| accepted

Answered

Check numbers in a 5x5 array

Sufficients Hints: #Check all the elements within 1 & 25, use logical statement to avoid loops result=data>=.... & data<=.......

Check numbers in a 5x5 array

Sufficients Hints: #Check all the elements within 1 & 25, use logical statement to avoid loops result=data>=.... & data<=.......

9 months ago | 0

Answered

How can i put in matrix data into cell array?

Cell array for i=1:length(matrix_data) cell_data{i}=matrix_data; end Detail?

How can i put in matrix data into cell array?

Cell array for i=1:length(matrix_data) cell_data{i}=matrix_data; end Detail?

9 months ago | 2

| accepted

Answered

how can i name my output and display it?

#Check Pt array size? Use ; for column vector or use traspose in the table data. T=table(ln,rn,Pt','VariableNames',{'From Bus'...

how can i name my output and display it?

#Check Pt array size? Use ; for column vector or use traspose in the table data. T=table(ln,rn,Pt','VariableNames',{'From Bus'...

9 months ago | 1

| accepted