Answered
How to remove unwanted portion from background?
It often does not work well for images that do not have a nice well separated bimodal histogram. The triangle method works well...

4 días ago | 0

Answered
Need help with code to loop through 10 images, calculating the edge, smoothness, and texture of each image
Start withthe FAQ https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F and the documentation for edge()...

4 días ago | 0

Answered
How do I loop plots part2
How is this any different than what I showed you here: https://www.mathworks.com/matlabcentral/answers/1564796-how-do-i-plot-di...

6 días ago | 0

| accepted

Answered
How can I include absent group names in table grouping results?
Try this: teamMembers = {'Al','Betty','Charles','Denice','Edward'} %Example Data Name = {'Denice';'Denice';'Al';'Charles';'Al...

6 días ago | 0

Answered
In table, replace NaN with Text (from NaN to "ABCD")
Like Jan says, you can't do it. Numbers are numbers and characters/string are characters/strings. You could do it with a cell ...

6 días ago | 0

Answered
How do I plot different fields of a structure in a loop?
Use dynamic field names: % Create sample data MCR_full.MIB035.Reaches.R32.kin = rand(100, 3) MCR_full.MIB035.Reaches.R33.kin ...

6 días ago | 0

| accepted

Answered
Stop using suggested word on right arrow
You can just keep typing and as long as you're not typing letters from example, the example should go away. For example if you ...

6 días ago | 1

Answered
Bug in equality checks? 28.15e-3 == 28.15/1000 false
See the FAQ: https://matlab.fandom.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F and use ismembert...

6 días ago | 0

Answered
plotting two lines intersecting at a certain point
You can scan the data, fitting each portion (left and right) to a line. Then find where the difference in slopes of the lines i...

7 días ago | 0

| accepted

Answered
99x99 matrix
Another way, even more compact: A = eye(99) | fliplr(eye(99)) As long as it's not your homework you can use my code.

7 días ago | 1

Answered
99x99 matrix
As long as it's not your homework you can use my code: A = min(1, eye(99) + fliplr(eye(99)))

7 días ago | 0

Answered
How can I build a matrix with an increasing number of terms in each row?
If you're willing to use a cell array instead of a regular matrix, you can do this: n = 50; ca = cell(n, n) for row = 1 : n ...

7 días ago | 0

Answered
how do I change numbers to dates?
Use the datetime() function and the month() function: monthNumberArray = 1:12; % Vector of whatever months you want. t = date...

7 días ago | 0

| accepted

Answered
The longest consecutive values in a vector and the position at which it starts and ends
If you have the Image Processing Toolbox (like most people do), you can use bwareafilt() to extract the longest run. Then the c...

7 días ago | 0

Answered
surf command doesn't plot the value next to NaNs values
How about if you just interpolate over the nans with the regionfill() function? load M_array % Fill nan holes in M_array. n...

7 días ago | 0

Answered
Why is the working directory opening to the launch directory upon launch?
Not sure why your preference is not adhered to. Try this workaround by setting the folder in your startup.m file: >>edit start...

7 días ago | 0

| accepted

Answered
Why is this error comming?
We can't run an image. You should have posted your code as code. It looks like A has 6 elements, whereas b has only 2 elements...

8 días ago | 0

Answered
Draw the ezplot for the function 𝑥^ 2 + 6𝑥 + 55
I never use ezplot() - I just specify the range and other options explicitly. You might try this: x = linspace(-10, 10, 1000);...

8 días ago | 0

Answered
Plz guide, if I have made this loop correct?
Looks correct to me, though I can't run it because you didn't supply many of the variables inside it. Why do you ask? Do you h...

8 días ago | 0

Answered
Borghi Diagram in MATLAB
You can use xlabel(), ylabel(), plot(), and text(). And annotation() or line() for the little lines.

8 días ago | 1

Answered
Plot an equation with a range
Try this v = linspace(-100, 50, 1000); Then plug that v into the formulas that need it. Like alpham = (0.1 * (v + 40)) ./ (1...

8 días ago | 0

Answered
How to find number of Pixel green colour image by using webcamera
Use the Color Threshold app on the Apps tab of the tool ribbon to define "green". Full demo is attached.

8 días ago | 0

Answered
Could you please help me to fit 2 circles so as to detect left and right half of breast?
You just have to add the circle fitting code like I told you in your duplciate question: % Find the leftmost point and don't in...

8 días ago | 1

Answered
Plot values of 3D matrix against a single variable
Try this: clc; % Clear the command window. fprintf('Beginning to run %s.m ...\n', mfilename); close all; % Close all figu...

8 días ago | 1

| accepted

Answered
homework help with a statics programing question?
Which variable is taking on the value of 180? Double the number of comments. Add fprintf('Written by Michail Popovits on Octo...

9 días ago | 0

| accepted

Answered
how to unscramble a .wav file to find the actual voice?
Try getting the fft, copying and pasting the chunks into their desired location (frequencies) and then inverse fft. Something l...

9 días ago | 0

Answered
How can I create a function that updates a structure whose input is that structure?
Just have the output be the input: To call data_raw = AlterStructure(data_raw ); To define function data_raw = AlterStructur...

9 días ago | 1

| accepted

Answered
Are there any examples showing how to perform Monte Carlo simulation in MATLAB?
For what it's worth, I'm attaching three of my Monte Carlo demos.

9 días ago | 0

Answered
How to change image size to, say 128?
I think most (or all?) network architectures are built to expect a certain size image upon input. I don't think you can just ch...

9 días ago | 0

Load more