Create x and y coordinates with available values
Try randomX = min(x) + range(x) * rand(1); randomY = min(y) + range(y) * rand(1);

4 dagen ago | 0

Create a sliding window
Ten million samples is not a lot, but anyway a simple intuitive way is for k = 1 : 500000 : length(vec) % Should be 20 iteratio...

4 dagen ago | 0

| accepted

How can you brighten certain portions of an image while keeping the other portions with their respective original brightness?
I don't know which areas/regions in your image are labeled 17, 18, and 19. Are they certain regions of the brain comprised of t...

4 dagen ago | 0

| accepted

Alphabets glitch on matlab screen
Are you using Windows? Did you by chance happen to hit the Alt key? That will do that. But typing Alt again or clicking anywh...

4 dagen ago | 0

| accepted

how to find the peaks between the local maxima and local minima
Try getting rid of minpeakprominence so that you find all peaks.

4 dagen ago | 0

| accepted

How to separate waves from a signal
If you have the Image Processing Toolbox (used to find the center of the "silent" parts), try this: % Demo by Image Analyst % ...

5 dagen ago | 1

| accepted

How to check the function call stack during the debugging process
Look at the top of your editor window. It's basically right above the source code.

5 dagen ago | 0

How to skip temporary files in a folder
Try this folder1 = pwd; folder2 = fullfile(pwd, 'Copied Files'); if ~isfolder(folder2) mkdir(folder2); end ext = '.csv...

5 dagen ago | 0

| accepted

"Invalid training data. Predictors and responses must have the same number of observations"
Instead of Xtemp=decoding_threshold*rand([1,sample_size]); for i=1:sample_size Xtrain{i}=Xtemp(i); end Xtrain=reshape(X...

5 dagen ago | 1

How can I import excel file (.xlsx) in Matlab and store the 4th column in a vector?
data = readmatrix(fileName); % Read entire workbook into 2-D matrix. column4 = data(:, 4); % Extract column 4 only...

5 dagen ago | 0

break x axis in matlab
Look in the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange?q=break+axis

5 dagen ago | 0

| accepted

Unable to detect 'mcc' hardware with surface 3 tablet
I use the MCC USB1024-HLS to read switch closures like this: % Load the MCC library. This takes a long time. pinNumber = 16; ...

5 dagen ago | 0

Is there a way to give method/property access to all classes in a package without typing them all in manually?
I don't know what that "Access=" stuff is, but I know if you have an instance of a class or a static class you can do methods(c...

6 dagen ago | 0

How to separate waves from a signal
Not hard, but you forgot to attach your data. But it would go something like this [upper, lower] = envelope(y); mask = upper ...

6 dagen ago | 1

How to extract the largest area?
It looks like there is a black path separating the different regions. I think you can just binarize the image and use bwareafil...

6 dagen ago | 0

| accepted

Export Data to Excel Error:
Maybe the workbook is still locked because the first call to writetable() has not finished 100%. If you put pause(2); % Wait 2...

6 dagen ago | 1

Fixing a choppy plot
You don't have many points in t. Try using linspace and specify a larger number. t = linspace(0, 10*pi, 2000); xt = sin(t); ...

6 dagen ago | 0

| accepted

How can i fill NaN values on unwanted region of an image?
Not sure from your image where the unwanted regions are - you didn't indicate them. If you want, and it's appropriate you could...

6 dagen ago | 0

file list when "dir" to import data
It's best if you can just add leading zeros when you create the files, like baseFileName = sprintf('blah blah blah fubar-ROI%3....

7 dagen ago | 0

Removing some specific bright circles in the image after knowing the location
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

7 dagen ago | 0

| accepted

how to detect blurred images in a dataset.
Perhaps you can take the fft of the image and check if the energy in the higher frequencies is not very high.

7 dagen ago | 0

| accepted

how to count visible lines in textArea?
I'd take a vertical profile and threshold it. You forgot to attach your picture. But if you have an image with black text on a...

7 dagen ago | 0

Removing some specific bright circles in the image after knowing the location
You forgot to attach an image. You can threshold to find bright things and then erase them. Assuming a gray scale image mask ...

7 dagen ago | 0

App Designer for Classification
In the learner, export the model to a .mat file. Then in your app read in the mat file and call it like the mat file tells you ...

8 dagen ago | 0

Divide an image vertically into two equally luminous parts, ..., calculate the luminance of each part.., PERSONAL NON-FUNDED RESEARCH,
Here's a start. See if you can finish it: % Initialization Steps. clc; % Clear the command window. close all; % Close al...

8 dagen ago | 0

How I use the creatmask function for rgb image?
Attached is an example I did for another question. Adapt it.

8 dagen ago | 0

| accepted

how to use gscatter in app designer
Why would it be any different than for just a script? Just place an axes on your figure, then call gscatter. What's the diffic...

9 dagen ago | 0

Divide training , validation and testing data.
Depends on what kind of network training you're doing. If you're using trainNetwork and labels, then you can use imageDatastore...

9 dagen ago | 0

How to draw three circles with centers and radii given?
"I can't cuz there is no command for circles" <== there is if you have the Image Processing Toolbox. x1=2; y1=8; r1=10; x2=5;...

9 dagen ago | 0

| accepted

how to put an app designer window in the center of the screen?
I have a function to center the GUI on the screen. See below. % Centers the figure on the screen. function CenterFigure(handl...

9 dagen ago | 0