Averaging fluctuating curves in a single one
Assuming they all have values at the same set of x coordinates, just average them: yMean = (y1+y2+y3+y4+y5+y6+y7+y8+y9) / 9; o...

13 days ago | 0

| accepted

How do i find the location by using max and find function?
Don't use max() - it only gives the location of the first global max, not all of them (in the case the max occurs in more than o...

13 days ago | 0

| accepted

Fitting a nonlinear curve to a small dataset
Any idea of what curve you want to fit it to? Like a polynomial, or an exponential decay (demo attached), or something else? T...

13 days ago | 1

| accepted

Find the column names and total number of columns having all the entries as NaNs
If abc is your matrix, try this nanMap = isnan(abc(2:end, :)); % Ignore first row. columns = find(all(nanMap, 1)); Not sure w...

14 days ago | 0

How to simplify this piece of code ( maybe vectorizing?)
To determine the likelihood of a head or tail being in a particular blob, you can simply use the area fraction. So to have them...

14 days ago | 0

Mapping age/date of birth of IDs in one excel to the same IDs in another
Maybe readtable() and join them with innerjoin(), outerjoin() or join()?

14 days ago | 0

| accepted

Binarizing of a 3D image
Use a program like Avizo for volume visualization: https://www.thermofisher.com/us/en/home/industrial/electron-microscopy/elect...

14 days ago | 0

| accepted

nested IF-ELSE statement
Hint: input(), rem(), sprintf(), while message = sprintf('>>>>> Enter an integer (0-9)\n blah blah fubar snafu lorem ipsum : ')...

14 days ago | 0

| accepted

Use the variable of function for title of a figure
This seems to work fine: name_struc.xaxis = 1:20; name_struc.yaxis = rand(1, 20); a = fullplot ( name_struc) %The function...

14 days ago | 0

| accepted

bubble Area when bubble overlap in sequence image
Try imfindcircles().

14 days ago | 0

Remove noise from data (out of phase)
Try xcorr

14 days ago | 0

How to rotate a fixed length Line about a perimeter of a circle
It's simple geometry. Just pick a radius, then go from 0 to 2*pi, or whatever angles you want. The slope is angle = linspace(...

14 days ago | 0

| accepted

Replacing value in satellite image.

14 days ago | 0

| accepted

How to detect the crack and calculate its length ?
Try bwskel(). Here is a full demo. Adapt as needed. % This demo computes the tortuosity and average width of a snake-like sha...

14 days ago | 0

using xlswrite to edit excel, how to remove the 'content-selection' when I open it.
You can call xlswrite() again to just write 'Req#' to A1 xlswrite(fileName, 'Req #', sheetName, 'A1');

15 days ago | 0

First I'd get a mask of just the circle. The mask should contains just the middle of the lamp where you want to change the colo...

15 days ago | 0

how to generate a sin function of time ....
How many samples do you want over that 1024 seconds? Let's say it's 50,000: numSamples = 50000; t = linspace(0, 1024, numSamp...

15 days ago | 0

| accepted

Selecting n random elements within a for loop
Have you seen dir() with two **? % Get a list of all PNG files in all subfolders of topLevelFolder. allFiles = dir([topLevelFo...

15 days ago | 0

| accepted

I want to know labelTr in Task_01 Brain Tumor Dataset.
No it is not, because there is no folder. To find ground truth you'll have to have the radiologist you are working with manuall...

15 days ago | 0

How to find Dice Similarity Coefficient?
How do you expect it to determine the union and overlap with grayscale images? You have to segment them into binary images firs...

15 days ago | 0

Color-based image segmenting with convolutional network
We've done this. We used segnet. To get ground truth images, be used traditional color segmentation and then manually "repaire...

15 days ago | 0

| accepted

How can we merge two separate video files into one?
Try calling imresize() to make them the same size: img1 = readFrame(vid1); [rows1, columns1, numColors1] = size(img1);...

16 days ago | 0

| accepted

How many colors with their name present in the image.
Like Adam showed you, there are many, many colors, not just 13. Here is a scatterplot of them: If you want just 13 you shoul...

16 days ago | 0

Fit curve when corresponding to one x value we have multiple y value?
Usually what I do in that situation is to add a very tiny, insignificant bit a noise to the x values. It will be so small that ...

16 days ago | 0

How to get image input in MATLAB App?
Why not have a listbox where the user can simply click on the image and it gets read in and displayed. See MAGIC

16 days ago | 0

| accepted

how do I randomly assign an effect to image
Get a mask and then change the colors. For each image (untested code, attach your images if you need more help). [r, g, b] = i...

16 days ago | 0

| accepted

How to replace every element of a matrix with another column matrix?
If you don't have the Deep Learning Toolbox, try this: y=[0,1,4,2,5,1,5,9,8] output = zeros(9, length(y)) for col = 1 : lengt...

16 days ago | 1

| accepted

Unable to perform assignment because the left and right sides have a different number of elements.
Since ecgBR has only one row, not n, you cannot do ecgBR(n, 1), which is the nth row in column 1. But you have 3600 columns, no...

16 days ago | 0

| accepted

continuous representation (image generation) of discrete data set
It looks like there is a whole toolbox at that site. Did you look it over for functions that might do that? Otherwise, see my ...

16 days ago | 0

| accepted