Answered
How to find out area under the curved shape of the attached figure?
Try the attached code to automatically find the lower dark shape. It produces.

2 years ago | 0

| accepted

Answered
Writing tiff file with multi channel and slices
What is z and t? If you want the loop to only go from c=1 to c=2, instead of this: for c = 1:dims(3) have this: for c =...

2 years ago | 1

Answered
The function is debugging too long...
Steve said youi have an infiite loop. You should never have one if you code it up properly. ALL while loops need a failsafe to ...

2 years ago | 1

Answered
I am looking for advice on the best way to learn matlab. I am a second year PhD student trying to familiarize myself with problems or projects. Any advice?
Try this link: Best way(s) to master MATLAB? - MATLAB Answers - MATLAB Central To learn fundamental concepts, invest 2 hours...

2 years ago | 0

Answered
How I Can Change language to English?
To change the language and server of what you're using on the Mathworks web site, go to www.mathworks.com and scroll way down to...

2 years ago | 3

Answered
Could anyone help me solve the problem below that i am facing
You have a function (method) of a class and when you execute that function, for some reason, the output variable never gets assi...

2 years ago | 0

| accepted

Answered
Problem with converted TIFF image
Try img_uint16 = uint16(double(img) / double(max(img(:))) * 65535); or img_uint16 = uint16(mat2gray(img) * intmax('uint16'));...

2 years ago | 0

| accepted

Answered
Saving a Script from another script
What you should do is to put all of your parameters that you want to vary in a text file or a workbook. Then read it in with so...

2 years ago | 0

Answered
AM Demodulation code error
time is a built in function so your use of it is not recommended. What is filt_received? Specifically what is its size (rows a...

2 years ago | 0

Answered
How do i detect background from any image given to me?
If you have the Computer Vision Toolbox, you can use the foreground detector: https://www.mathworks.com/help/vision/ref/vision....

2 years ago | 0

Poll


My favorite sport to watch is

2 years ago | 3712 votes | 15 comments

Answered
i have ascii data converted into columns and rows seperatby str2num command now i want to add all rows in orderly in one cell by using for loop can you give me ans
Try this: fileName = "radio.txt"; data = readmatrix(fileName, 'NumHeaderLines', 5) % Turn nans into 0's. data(isnan(data)) =...

2 years ago | 0

Answered
how can I view each individual superpixel?
The superpixels algorithm gives you the labeled image, where each superpixel is assigned an ID number. To view them all you cou...

2 years ago | 0

Answered
Creating a safety distance from an obstacle in occupancyMap
If you have the Image Processing Toolbox, you can use imdilate - it does what you ask for. If you don't want blobs to join/conn...

2 years ago | 0

Answered
How can I extract the region of interest and its features of the highest moving energy/intensity area
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

2 years ago | 0

Answered
Image segmentation with different lighting conditions (Color Thresholder)
Try this. I tested it only with the first image. See attached demo to convert to pixels. Through you could do that automatica...

2 years ago | 0

Answered
How do I avoid the mistake?
There is a thorough discussion in the FAQ: https://matlab.fandom.com/wiki/FAQ#%22Subscript_indices_must_either_be_real_positive_...

2 years ago | 0

Answered
Make the colours of my graph continuous
I would just blur the image before displaying it. windowWidth = 15; % Whatever.... blurKernel = ones(windowWidth, windowWidth)...

2 years ago | 0

Answered
Unrecognized function or variable
Try this: t = 1:1:2960; t2= t/128; t2 = t2'; %rc is raw data %rcf is segmented data fs = 128; Lab5 = lowpass(realLab5...

2 years ago | 0

Answered
Finding mean of data in array inside another array
Did you try the obvious brute force for loop method: theMeans = zeros(numel(X), 1); for k = 1 : numel(X) % Get the mean o...

2 years ago | 0

| accepted

Answered
Implementation of Moving target Indicator
Not sure what that means. Explain "zeroing the velocity axis near zero". You can certainly plot a symbol at a certain (x,y) ...

2 years ago | 0

Answered
Function that makes Anonymous Functions
Did you try something like this: x = [5, 10]; y = [15, 25]; % Get parameters. [a, b] = GetFit(x, y) % Define anonymous func...

2 years ago | 0

Answered
Simulating a 2D Random Walk
See attached demos for random walks. I think all of them are 2-D.

2 years ago | 0

Answered
How Can I Calculate Displacement Of An Object (it can be a point on object) Out Of A Video Record
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

2 years ago | 0

Answered
mcc insensitive to -a and -I options
Your folder might have spaces in it, like "C:\Program files\" Try enclosing the folders in double quotes: mcc -o output_fcn_na...

2 years ago | 0

Answered
k-means segmentation for Raman analysis
I don't know if kmeans is the best, unless you know for a fact that there are definitely exactly 6 classes present in all images...

2 years ago | 0

Answered
reading images from different folders
See attached demo. Adapt as needed.

2 years ago | 0

Answered
attach variabe in image
See https://www.mathworks.com/help/vision/examples.html?category=tracking-and-motion-estimation

2 years ago | 0

Answered
How can I extract the region of interest and its features of the highest moving energy/intensity area
The Computer Vision Toolbox has tracking functions in it. Look into them.

2 years ago | 1

Answered
How to just plot the data inside the minimum and maximum values in a figure?
Not sure what you mean but you can use xlim and ylim to set the ranges that are visible inside the plot box. Regarding making s...

2 years ago | 0

Load more