Answered
Get frames of a video
See my attached demo. I use it to read in all the frames of a video and then, optionally, write them out to individual image fi...

6 días ago | 0

Answered
Binarization to Crop Image
I would try to have the blue tape completely surround the hair and then do color segmentation on the blue tape. Then pick the b...

6 días ago | 0

| accepted

Answered
While loop with OR
Trying to be as general as p[ossible, try this: % Define initial vector: v = 1:14 % Get everything except for certain values:...

6 días ago | 0

Answered
How to write data into .txt file
% Ask for the name of the file that the user wants to save. startingFolder = pwd % or wherever you want. defaultFileName = ful...

6 días ago | 1

| accepted

Answered
calculate average only for one group
Try the built-in functions grpstats() or splitapply(). Attach code to make your table if you need more help.

6 días ago | 0

Answered
I want a Mathworks Polo Shirt
If you have a 3-D printer you can print your own logos. We just bought an Ender 5 printer. (https://creality3d.shop/collection...

7 días ago | 1

Answered
Mathworks and Matlab merchandise
If you have a 3-D printer you can print your own logos. We just bought an Ender 5 printer. (https://creality3d.shop/collection...

7 días ago | 0

Answered
MATLab promotional items?
If you have a 3-D printer you can print your own logos. We just bought an Ender 5 printer. (https://creality3d.shop/collection...

7 días ago | 0

Answered
Question about plotting time series graph in Matlab
Try plot(subplot1, t, ea, 'r-', 'LineWidth', 2) grid on;

7 días ago | 0

Answered
Question about plotting time series graph in Matlab
Doesn't this look kind of like your image? t1 = datetime(1971,1,1,8,0,0); t2 = datetime(2017,1,1,8,0,0); t = t1 + calmonths(1...

7 días ago | 0

Answered
Accessing a value in a vector from a conditional statement
Use find(): v=[6 10 25 35 50 65 80] x=10.02 y=10.47 mv=max(x*.125,y*1.25) [~, index] = find(v >= mv, 1, 'first') value = v...

7 días ago | 0

Answered
unstack warnings about variable names
Using your table's name, what does this say if you stop there and type this into the command window. yourTableName.Properties.V...

7 días ago | 0

Answered
Pixel to Area conversion accruacy issue with Matlab and im2bw function
As you can see from this corrected code: clc; % Clear the command window. fprintf('Beginning to run %s.m ...\n', mfilename)...

7 días ago | 1

Answered
Please help how to read colour depth of image in matlab
Hint: rgbImage = imread('peppers.png'); size(rgbImage) whos rgbImage That should be enough for you to figure it out.

7 días ago | 0

Answered
I find there is some problem with the importdata function import data, there is some data without negative character?What is the reason?
I don't know. I think maybe all the minus signs in the string on each line might be confusing it. Try readmatrix: data = read...

7 días ago | 0

Answered
How to code image types?
Try this: grayImage = imread(fullFileName); % Get the dimensions of the image. % numberOfColorChannels should be = 1 for a gr...

7 días ago | 1

| accepted

Answered
How do I pre-allocate a struct in a while loop with unknown N?
You could preallocate a huge amount -- way more than you think you'd need -- then just use indexing after the loop to crop it to...

7 días ago | 0

Answered
Can anyone help me understand this code?
This crude code reads in images and resizes and displays them. It also (for some reason) stores them in a cell array.

7 días ago | 0

| accepted

Answered
what is the meaning of this code?
It just instantiates four cell arrays and a double matrix. It doesn't really mean anything, at least not to me. Why should it?...

7 días ago | 0

| accepted

Answered
How to divide a closed detected edge of an image into 8 parts from a point inside in it..?
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_an_arc.3F Adapt as needed.

7 días ago | 0

Answered
Fixed sized positionable rectangular ROI
Try drawrectangle(). Use can click and drag. Set up a listener that resets the size in the event that they click a handle to c...

7 días ago | 0

| accepted

Answered
How to disable a toolbox
To disable an entire toolbox -- ALL of it's functions -- you can uninstall it from the Add-On Manager (Home tab of Toolbar -> Ad...

7 días ago | 0

Answered
How to save the hold on image
Try exportgraphics() if you have R2020a. Otherwise use export_fig().

7 días ago | 0

| accepted

Answered
image differences in a series
See the FAQ for code samples: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

7 días ago | 1

Answered
how to delete a row in a cell array
Since your question is ambiguous, I've done it for you both ways: A = {'rowcount' 'one' 'two' 'three'; 'rowone' [1] [2] [3]; 'r...

8 días ago | 0

Answered
Is that possible to view the codes of standalone application?
No, noone can read them. It's a binary file. Just like no one can see the source for for Microsoft Word by editing the .exe fi...

8 días ago | 1

| accepted

Answered
Create custom x-axis for 'imagesc' plot
If you use imshow(), you can simply pass in the endpoints of the x axis to the 'XData' property: imshow('moon.tif', 'XData', [-...

8 días ago | 0

Answered
adding variablenames to multiple columns in cell2table
It is not possible. You'll have to leave it as a cell array. For a table, all columns must have a unique variable name. With ...

8 días ago | 0

Answered
Does anyone know how to use the matlab to calculate the minimu distance between a point outside oval and the oval surface?
"The oual can be both given in the form of an equation or data points." <== if you have data points (xb, yb) on the boundary o...

8 días ago | 1

Answered
How to read a multiframe tiff in MATLAB?
This is what I do in my app having multipage tiffs info = imfinfo(imageFullFileName); numberOfPages = length(info); for k = 1...

8 días ago | 0

Load more