统计学
All
Feeds
已回答
Droplet size calculation of a spray image
Use 'kmeans' for segmentation and 'regionprops' to get properties of particles, image=imread('particle.jpg'); jqimage=rgb2gr...
Droplet size calculation of a spray image
Use 'kmeans' for segmentation and 'regionprops' to get properties of particles, image=imread('particle.jpg'); jqimage=rgb2gr...
2 years 前 | 0
已回答
Comparing an occurance of colors between 2 images
convert the images to HSV colorspace and use the hue component to clustering. match the colors using the obtained cluster cente...
Comparing an occurance of colors between 2 images
convert the images to HSV colorspace and use the hue component to clustering. match the colors using the obtained cluster cente...
2 years 前 | 0
| 已接受
已回答
Can anyone explain me how to read ecg .dat, .hea, .atr files ?
check ecg-kit https://physionet.org/content/ecgkit/1.0/common/
Can anyone explain me how to read ecg .dat, .hea, .atr files ?
check ecg-kit https://physionet.org/content/ecgkit/1.0/common/
2 years 前 | 0
| 已接受
已回答
Can someone help me with the square wave plot here?
T=12; N=3; D=25; A=3; t= 0:0.001:1; x = A*((1+square(2*pi*N*t,D))/2); t2=t*T*N; plot(t2, x);
Can someone help me with the square wave plot here?
T=12; N=3; D=25; A=3; t= 0:0.001:1; x = A*((1+square(2*pi*N*t,D))/2); t2=t*T*N; plot(t2, x);
2 years 前 | 1
已回答
How to export data used to make MATLAB figure?
fig=openfig('SophiesFigure_nanodomains.fig'); data1=fig.Parent.Children(2).CurrentAxes.Children.YData %histogram xdata=ww.Cu...
How to export data used to make MATLAB figure?
fig=openfig('SophiesFigure_nanodomains.fig'); data1=fig.Parent.Children(2).CurrentAxes.Children.YData %histogram xdata=ww.Cu...
2 years 前 | 0
已回答
loops and conditional statements in Matlab for data filtration
A=[1 3 4 2 3 -9 4 -7 8 6 7 -1 2 3 4 6 19 7 12 3 -4 -5 6 7 8 2 3 5 2 3 4 ]'; A(A<0)=0; A(A>10)=0;
loops and conditional statements in Matlab for data filtration
A=[1 3 4 2 3 -9 4 -7 8 6 7 -1 2 3 4 6 19 7 12 3 -4 -5 6 7 8 2 3 5 2 3 4 ]'; A(A<0)=0; A(A>10)=0;
2 years 前 | 0
| 已接受
已回答
How to extract value from a matrix with given indices
code example is ind = sub2ind(size(matrix),index,1:5); new=matrix(ind)
How to extract value from a matrix with given indices
code example is ind = sub2ind(size(matrix),index,1:5); new=matrix(ind)
2 years 前 | 1
已回答
implay a video and draw n points with ginput
try: h=implay(video) [x,y] = getpts(h.Visual.Axes)
implay a video and draw n points with ginput
try: h=implay(video) [x,y] = getpts(h.Visual.Axes)
2 years 前 | 0
| 已接受
已回答
How to match array data and excel data?
if all data type is in array type, the matching row positions can be obtained using rows=all(B==I,2) contents from 'A' obtain...
How to match array data and excel data?
if all data type is in array type, the matching row positions can be obtained using rows=all(B==I,2) contents from 'A' obtain...
2 years 前 | 0
已回答
how to convert hours and minutes from decimals to datetime objects
First convert it into string type with the format "yyyy-MM-dd hh-mm" using hours_decimal=15.9 myDate=string("2008-05-07 ")+str...
how to convert hours and minutes from decimals to datetime objects
First convert it into string type with the format "yyyy-MM-dd hh-mm" using hours_decimal=15.9 myDate=string("2008-05-07 ")+str...
2 years 前 | 0
已回答
how to find the length of the foot automatically from the image
refer https://in.mathworks.com/help/images/image-segmentation.html https://in.mathworks.com/help/images/ref/regionprops.html...
how to find the length of the foot automatically from the image
refer https://in.mathworks.com/help/images/image-segmentation.html https://in.mathworks.com/help/images/ref/regionprops.html...
2 years 前 | 0
已回答
Select specific area of a DICOM file
remove noise using median filter IM=medfilt2(P); find gradient [Gmag,Gdir] = imgradient(IM); then apply circle detection or ...
Select specific area of a DICOM file
remove noise using median filter IM=medfilt2(P); find gradient [Gmag,Gdir] = imgradient(IM); then apply circle detection or ...
2 years 前 | 0
| 已接受
已回答
GAN examples for Neural Network/Deep Learning Toolbox of R2018b or earlier?
you can find some in github. https://github.com/jonzhaocn/GAN-Base-on-Matlab
GAN examples for Neural Network/Deep Learning Toolbox of R2018b or earlier?
you can find some in github. https://github.com/jonzhaocn/GAN-Base-on-Matlab
4 years 前 | 0
| 已接受
已回答
How Can I create struct field in a loop?
'struct' command creates new structure. you have to create new structure at the starting of loop. add new fields to the structur...
How Can I create struct field in a loop?
'struct' command creates new structure. you have to create new structure at the starting of loop. add new fields to the structur...
5 years 前 | 0
| 已接受
已回答
Specific change points in large dataset
Here is one of the methods using 'diff' function. use following code to get all the difference values and plot those values to...
Specific change points in large dataset
Here is one of the methods using 'diff' function. use following code to get all the difference values and plot those values to...
5 years 前 | 0
已回答
read multiple csv files from different subfolders
Use 'dir' function to get the directory and file list of any folder. e.g D=dir('Raw data'); output 'D' is an structure array c...
read multiple csv files from different subfolders
Use 'dir' function to get the directory and file list of any folder. e.g D=dir('Raw data'); output 'D' is an structure array c...
5 years 前 | 0
已回答
How to convert time to a number?
use following code to get values as string array. time=input(prompt,'s'); split the output 'time' using split function with de...
How to convert time to a number?
use following code to get values as string array. time=input(prompt,'s'); split the output 'time' using split function with de...
5 years 前 | 0
提问
why 'colormap' did not change the color of my plots?
example: figure, plot(rand(5)) colormap hot above code did not change the color of plot.
5 years 前 | 2 个回答 | 0
2
个回答已回答
Extracting Slices From Slice Function
use the vector slicing to get one slice, Let V is the input volume. e.g S=V(:,:,1); use 'imshow' or 'imagesc' functions to vie...
Extracting Slices From Slice Function
use the vector slicing to get one slice, Let V is the input volume. e.g S=V(:,:,1); use 'imshow' or 'imagesc' functions to vie...
5 years 前 | 0
| 已接受
已回答
Help with Loops and Switch cases and Mean
here is the code Q=input('Would you like to enter a real number? (Yes or No) ','s'); n=[]; switch Q case 'Yes' ...
Help with Loops and Switch cases and Mean
here is the code Q=input('Would you like to enter a real number? (Yes or No) ','s'); n=[]; switch Q case 'Yes' ...
5 years 前 | 1
| 已接受
已回答
How to shift a matrix
loop version: M=[ 1,2,3; 4,5,6; 7,8,9; ]; C=nan(3,4); for i=1:size(M,1) if mod(i,2)==1 C(i,2:end)=M...
How to shift a matrix
loop version: M=[ 1,2,3; 4,5,6; 7,8,9; ]; C=nan(3,4); for i=1:size(M,1) if mod(i,2)==1 C(i,2:end)=M...
5 years 前 | 1
| 已接受
已回答
How to upload csv. files from multiple folders
to automate the file and folder access operations, do not use 'uigetfile' or 'uigetdir' functions. use 'dir' function to get th...
How to upload csv. files from multiple folders
to automate the file and folder access operations, do not use 'uigetfile' or 'uigetdir' functions. use 'dir' function to get th...
5 years 前 | 0
已回答
How to access data from a struct when the dot notated reference is passed as a char array?
To to get the field names of struct array, use 'fieldnames' function S.x=1; S.y=2; fields = fieldnames(S) then, to get the...
How to access data from a struct when the dot notated reference is passed as a char array?
To to get the field names of struct array, use 'fieldnames' function S.x=1; S.y=2; fields = fieldnames(S) then, to get the...
5 years 前 | 0
已回答
Question about import a .txt file into matlab
you can use 'fopen' and 'fread' functions. https://www.mathworks.com/help/matlab/ref/fread.html
Question about import a .txt file into matlab
you can use 'fopen' and 'fread' functions. https://www.mathworks.com/help/matlab/ref/fread.html
5 years 前 | 0
已回答
wirte in excel sheet.
Delete the already created excel sheet. Change the last line of code to xlswrite('Book1.xlsx',q,'A1:BI1') if you want to stor...
wirte in excel sheet.
Delete the already created excel sheet. Change the last line of code to xlswrite('Book1.xlsx',q,'A1:BI1') if you want to stor...
5 years 前 | 0
已回答
Problem with data saving in a for loop
Best solution is: store the output variable 'vector' fom each iteration, into another variable(array, cell array). then at the ...
Problem with data saving in a for loop
Best solution is: store the output variable 'vector' fom each iteration, into another variable(array, cell array). then at the ...
5 years 前 | 1
已回答
Problem with data saving in a for loop
you have to put the 'xlswrite' functions inside the for loop. also, for each iteration, change the sheet number or the 'xlRange...
Problem with data saving in a for loop
you have to put the 'xlswrite' functions inside the for loop. also, for each iteration, change the sheet number or the 'xlRange...
5 years 前 | 1
| 已接受
已回答
Create lookup table for cell array
Code example to convert cell array to table. A={1,2,3} B=array2table(A');
Create lookup table for cell array
Code example to convert cell array to table. A={1,2,3} B=array2table(A');
5 years 前 | 0
已回答
I need to make a square wave
see: https://in.mathworks.com/help/signal/examples/signal-smoothing.html https://in.mathworks.com/matlabcentral/answers/3205...
I need to make a square wave
see: https://in.mathworks.com/help/signal/examples/signal-smoothing.html https://in.mathworks.com/matlabcentral/answers/3205...
5 years 前 | 0