Answered
Identifying regions in matrix rows
If you have the Image Processing Toolbox, it's pretty easy: M = [...] 1 2 3 -1 -1 -1 -1 -1 -1 ...

3 years ago | 0

Answered
How can I deactivate MATLAB on a pc I cannot access?
You can do it via the webiste. Login to mathworks.com with your account credentials. Go to "My Account" by clicking on your ic...

3 years ago | 0

| accepted

Answered
imwrite is corrupting a mex file when I run it
I believe imwrite, when saving tiff files expects them to be uint8 in the range of 0-255 or uint16 in the range 0-65535. You're...

3 years ago | 0

Answered
Draw samples using a Non-Gaussian distribution
Let's say you have a vector of 100 numbers. The numbers could be anything -- doesn't matter, and we don't care. To make x from...

3 years ago | 0

| accepted

Answered
how sort data in the excel
Try this: filename = "sort_dataset.xlsx"; % Read data into a table variable. t = readtable(filename) % Sort table in order ...

3 years ago | 1

| accepted

Answered
Invalid expression please fix :(
"can send screenshots of code running that would be helpful". It runs fine in r2023a and r2023b (see below). Now it's your tu...

3 years ago | 0

Answered
how to solve this problem, when run a exe
You can get any MCR from here: https://www.mathworks.com/products/compiler/matlab-runtime.html

3 years ago | 0

Answered
Complex Roots of a quadratic function
Why not call the built-in roots function? help roots

3 years ago | 0

Answered
Error when upload image to GUI
You do not have an axes with the name axes2. Open up GUIDE, click on all your axes controls, and look at the "Tag" property. S...

3 years ago | 0

| accepted

Answered
Color Label Image By Region Property
You can still use label2rgb -- just construct your colormap so that each row has the color you want for that particular blob (ba...

3 years ago | 1

Answered
How do I do a regress like this?
Not sure why you need a regression. How about this to just find out the percentage decrease at each time point. Then compute t...

3 years ago | 1

| accepted

Answered
Magnify Surface Blobs and Paint Them
Well there are two ways to draw outlines of the original and enlarged region. Use bwboundaries to get the outline of the segmen...

3 years ago | 0

Answered
How to fix problem with subplot and for loop
N_fact=0.2:0.6:4 numel(N_fact) You can see that you need at least 7 plots but with "3,2" you're setting up a layout of only 6 ...

3 years ago | 0

Answered
How do I add commas to numbers using fprintf?
See my attached utility function that inserts commas to make a string out of a number. Then in your fprintf you print the strin...

3 years ago | 0

Answered
Why do I receive license manager error 10?
A search of this forum should have turned up this official link: https://www.mathworks.com/matlabcentral/answers/93260-why-do-i...

3 years ago | 0

Answered
Defining boundaries of a curve
"what I'm trying to do is akin to density-based clustering" You might like to learn about dbscan help dbscan Wikipedia descri...

3 years ago | 0

Answered
Show boundingbox and label around segmented image
If C is your labeled image, untested code: props = regionprops(C, 'BoundingBox'); hold on; % Display all bounding boxes over ...

3 years ago | 0

Answered
How to plot these results?
Go here for plot options: https://www.mathworks.com/products/matlab/plot-gallery.html Pick one you like and adapt the sample c...

3 years ago | 0

Answered
How to resize imtool window?
Rather than keep resizing the imtool window as the user zooms in or out, why not just maximize the window at the very beginning ...

3 years ago | 0

| accepted

Answered
bwlabel changes the number of pixels in blobs
Your image is not a binary image. It's an RGB image. bwlabel returns a labeled image as a double, not a binary image as you sh...

3 years ago | 0

| accepted

Answered
how "atestinput" could be recogrnised in matlb and how it is calculated in testing of image clasification؟
MATLAB will automatically create/define variables using the class of the first thing assigned to them. By the way, I would not ...

3 years ago | 0

Answered
images issues on Ubuntu
Do what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_message_whe...

3 years ago | 0

Answered
How do I zero out a frequency of an audio signal?
Did you try something like spectrum = fft(signal); spectrum(kt-200 : kt+200) = 0; denoisedSignal = ifft(spectrum); if kt is ...

3 years ago | 0

Answered
I get the error:index in position 1 is invalid. array indices must be positive integers or logical values
It's thoroughly discussed in the FAQ: https://matlab.fandom.com/wiki/FAQ#%22Subscript_indices_must_either_be_real_positive_inte...

3 years ago | 0

Answered
Fatal Startup Error on R2022b
Do exactly what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_mes...

3 years ago | 0

Answered
Not Enough Input Arguements (Line 9)
You need to call your function's file importfile.m, not data.m. Then you need to call it like this: importfile('c:\mydata\what...

3 years ago | 0

Answered
Hello good... I would like to know how I can skip the comments header of a text file with data for a graph please :c
@Lya Lopez, You can use readmatrix with the NumHeaderLines option: data = readmatrix(filename, 'NumHeaderLines', 3); % Skip fir...

3 years ago | 0

Answered
How can I delete data from my table if two centroids from regionprops are the same?
Chances are low that you will ever have the same centroid location exactly, out to 16 decimal places. I suggest you use ismembe...

3 years ago | 0

Answered
Hello everyone How could I get a video of the following animation?
Use writeVideo. See attached examples where I change a plot/graph/surface plot and make a movie out of the individual frames. ...

3 years ago | 0

Answered
bwconncomp reports only one connected component when there are obviously many hundreds
There is just one connected, semi-porous blob as you can see from the screenshot below: s = load('imt2.mat') imt2 = s.imt2; p...

3 years ago | 1

| accepted

Load more