Answered
different frames using VideoReader
vidObj = VideoReader(myvideo); numFrames = 0; iwant = cell([],1) ; while hasFrame(vidObj) F = readFrame(vidObj); ...

7 years ago | 0

Answered
how can I show name of point cloud in figure?
REad about text.

7 years ago | 0

| accepted

Answered
Voronoi Diagram Boundaries with a given width
A = [3,7,2,8,5]; B = [6,1,0,8,1]; x=2; h = Voronoi(A,B); for i = 1:length(h) h(i).LineWidth = x ; end

7 years ago | 1

| accepted

Answered
Stretch the middle of image
img = imread('dough.png');%Open the image input image(img) [rows,columns,~] = size(img) iwant = imresize(img,[2*rows column...

7 years ago | 0

| accepted

Answered
Write Matlab data to an Excel sheet
T = table(a,b,date); filename = 'data.xlsx'; writetable(T,filename,'Sheet',1)

7 years ago | 0

Answered
how can I select rows data from imported file
T = readtable(myfile) ; idx = contains(T.CATE,'MODEL') ; % also have a look on strcmp T(idx,:)

7 years ago | 0

Answered
Reduction of repeated lines in code
This should do: dfunc = zeros(1000,1000,10) ; for n = 1:10 dfunc(:,:,i) = (sin(2.*pi*x0/Lx).*sin(m.*pi.*z0/Lz).*sin((n.*...

7 years ago | 0

| accepted

Answered
plot 3 line to connect a value on surface
YOu may follow something like this: [X,Y,Z] = peaks(50) ; % Pick a point [val,idx] = max(Z(:)) ; P = [X(idx) Y(idx) Z(idx...

7 years ago | 0

Answered
Intersection of data Points
Use this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function

7 years ago | 0

Answered
extract data according to specified lat,lon bounding box
REad about interp2. Let X,Y,Z be your original data. And let Xi, Yi be your new grid. Zi = interp2(X,Y,Z,Xi,Yi) ;

7 years ago | 0

Answered
how to fill pre allocated matrix using two columns vectors
X = [ 35;43;22] ; Y = [75;44;67] ; [X,Y] = meshgrid(X,Y);

7 years ago | 0

Answered
Finding ratio of two columns and then plotting a scatter with the ratio and timestamp
t0 = datetime('26-Jun-2019 00:00:00') ; t1 = datetime('26-Jun-2019 23:00:00') ; thedates = t0:hours(1):t1 ; y = rand(size(t...

7 years ago | 0

Answered
Converting a cell type data to a 4d format
% CReate random input for demo A = cell(5,1) ; for i = 1:5 A{i} = rand(300,18) ; end B = zeros(18,300,5) ; for i = ...

7 years ago | 0

Answered
How to calculate mean and SD of Z coordinates within a circle I drew out of a figure?
Read about inpolygon. You have circle coordinates and image coordintes. Use inpolygon and get the coordinates lying inside the c...

7 years ago | 0

| accepted

Answered
generate grid and coordinates in a rectangle
Read about meshgrid. Let L and B be the length and breadth of the rectangle. L = 2. ; B = 1. ; m = 100; n = 100 ; l = ...

7 years ago | 0

| accepted

Answered
Find yellow pixels in an image
Loop not required...refer this https://in.mathworks.com/matlabcentral/answers/4508-modify-this-code-to-detect-yellow-colour

7 years ago | 0

Answered
How to measure width of the strip lines from an image?
I = imread('P_20190617_135833_vHDR_On.jpg') ; I1 = rgb2gray(I) ; I2 = imbinarize(I1) ; [y,x] = find(I2) ; % Get boundin...

7 years ago | 0

| accepted

Answered
Pixel value of edge
% Left side I(:,1) % Right Side I(:,end) % Top I(1,:) % Bottom I(end,:)

7 years ago | 0

Answered
Combining files and mapping them using x and y coordinates
Read about ismember

7 years ago | 0

| accepted

Answered
How to plot a 3D scatter having colormap with hyperplanes going through a point?
Are you expecting something like this? x= [5, 8, 20, 25, 40]; y=[0.2, 0.66, 0.8, 1.0, 1.4]; z = [3, 2, 1, 0.5, 0.25]; A =...

7 years ago | 0

Answered
How can I make a waterfall plot from a folder full of text files?
txtfiles = dir('*.txt') ; N = length(txtfiles) ; figure hold on for i = 1:N data = importdata(txtfiles(i).name) ; ...

7 years ago | 0

Answered
how to set a one dimensional matrix flag ,which length is 65536 and each of its elements is zero.?
iwant = zeros(1,65536) ; Read about zeros. If you want ones, read about ones.

7 years ago | 1

Answered
How to modify the coordinate of a 3D cube ?
Follow this: https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube

7 years ago | 0

| accepted

Answered
How to remove header lines in .txt file?
REad about textscan; here you can provide the number of header lines.

7 years ago | 1

| accepted

Answered
Segmenting data based on multiple min and max value
Read about findpeaks. It will give indices and values of the maximas. From the indices you take next and before values.

7 years ago | 0

Answered
Extract cell with number lines and columns
Read about xlsread and readtable.

7 years ago | 0

Answered
Summation of a character
Read about uint16. This will convert the characters into numeric codes. When you use sum on the characters, they will be convert...

7 years ago | 0

Answered
How to prevent a figure window to automatically take focus
We should look into code for straight solution. Check the below code: for i = 1:10000 figure(1) plot(rand(1,100)); ...

7 years ago | 0

Answered
Saving data from a loop in an array
clc clear all close all dir = 'C:\Users\Anton\Documents\MATLAB\'; file = 'Rennen_meting_3.mat'; Visualizedata = true; load...

7 years ago | 0

| accepted

Answered
Three-dimensional matric and Excel
How about writing each matrix in a sheet. A = rand(10,10,5) ; for i = 1:5 xlswrite('test.xlsx',A(:,:,i),i) end

7 years ago | 0

| accepted

Load more