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...

3 days 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...

3 days ago | 0

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

3 days 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

3 days 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...

4 days 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...

4 days 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', [-...

4 days 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 ...

4 days 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...

4 days 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...

4 days ago | 0

Answered
How to detect the uitable on GUI
You can use isempty() to determine if a variable is null. You can use iscell() to determine if a variable is a cell array. The...

4 days ago | 0

Answered
adding 5% white gaussian noise
Try this: % Make sample data. x = linspace(0, 3*pi, 640); period = 2*pi; y = cos(2 * pi * x / period); % Noise-free signal. ...

4 days ago | 0

| accepted

Answered
How to plot images with different sizes in one figure?
The first argument to subplot needs to be 2 because there are 2 rows. The layout is this: 1 2 3 4 For the first two plots,...

4 days ago | 0

| accepted

Answered
fitting a circle with fitnlm
You might also be interested in the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_fit_a_circle_to_a_set_of_XY_data.3F

4 days ago | 0

Answered
How to plot (n) circles with known center and radius
If you have the Image Processing Toolbox, use viscircles(centers, radii): theta=10 % azimuthal distance between the centers of ...

4 days ago | 0

| accepted

Answered
how to create a video after an edge detection for loop
You're not writing the edge image out, either to a saved image file or the video. See my attached demos -- they show you how to...

4 days ago | 1

Answered
Why is my code showing the error:" Error using matlab.graphics.primitive.Image/set; Invalid or deleted object.
At some point hShow disappears. Set a breakpoint there and then stip through with the debugger and look at the workspace to fin...

5 days ago | 0

| accepted

Answered
How to select the desired object in a certain region in an image?
Just check the area and centroid and throw out those that aren't close enough to the middle and large enough labeledImage = bwl...

5 days ago | 0

Answered
What is wrong with my code ,why i am getting exactly same output and plot for spline and cubic?
A spline is a cubic interpolation between points with the added requirement that the slopes match at the knot points. Not sure ...

5 days ago | 0

| accepted

Answered
Display output in the center of the screen
I don't know because the command window width changes depending on how you have it sized. This might be a question for Yair Alt...

5 days ago | 0

Answered
Avoid lower case in legend by plotting legend with 'DisplayName'
Use the 'Interpreter', 'none' option in legend(): % Read headers plot(1:10); hold on plot(4:14); legend('plot_1', 'plot_2',...

5 days ago | 0

| accepted

Answered
displacing iterations of a signal
In your loop, you can just create an x that gets shifted on each iteration stim = ...... x = 5000 * i + (1 : length(stim)); % ...

5 days ago | 0

Answered
How to curve fit an edge on an image
There is no point in doing a Canny edge detection after you have binarized the image. Just binarize and scan your image from to...

5 days ago | 0

Answered
How to number the peaks and troughs of signal ?
Try findpeaks() in the Signal Processing Toolbox. Invert the signal to find valleys. numPoints = 50; x = sort(rand(1, numPoi...

5 days ago | 0

| accepted

Answered
How to view multiple cells of column data on the same sheet
You can try celldisp() to spit them out to the command window.

5 days ago | 0

Answered
Is it okay to interpolate between overlapping areas obtained using a sliding window to make a colormap?
The value at that point is the ratio within the window when the window is located at that point. I don't see any problem with t...

5 days ago | 0

| accepted

Answered
Custering data by color
mahdi: Is this what you're looking for: % Initialization steps. Brute force cleanup of everything currently existing to start...

5 days ago | 1

Answered
MatLab crashing while saving variable
When it crashed, did it offer to send in the crash log, either when it crashed or when you started MATLAB the next time? If so,...

5 days ago | 0

Answered
Create a grid on an image
You forgot to attach your image or screenshot. And you forgot to tell us what shaping and flag are. But it looks like this loo...

5 days ago | 0

Load more