Answered

How can I fill the gaps in a binary image?

An imclose with a fairly large structuring element might be what you're after, something like: imclose(yourbinaryimage, strel('...

How can I fill the gaps in a binary image?

An imclose with a fairly large structuring element might be what you're after, something like: imclose(yourbinaryimage, strel('...

12 hours ago | 0

Answered

can anyone help me to find the error ?

[ xapp,it] = newton(x0,esp,@f,df,nmax) should probably fix the problem.

can anyone help me to find the error ?

[ xapp,it] = newton(x0,esp,@f,df,nmax) should probably fix the problem.

12 hours ago | 0

Answered

How to compare 2 rows with specific row gap

In matlab loops are rarely needed and often make the code more complicated. Case in point, your original code comparing pairs of...

How to compare 2 rows with specific row gap

In matlab loops are rarely needed and often make the code more complicated. Case in point, your original code comparing pairs of...

12 hours ago | 0

Answered

griddata size and length mismatch error while they are the same length

"I have no clue what I'm doing wrong" You've been caught by what I call matlab's split personality. Most functions in matlab us...

griddata size and length mismatch error while they are the same length

"I have no clue what I'm doing wrong" You've been caught by what I call matlab's split personality. Most functions in matlab us...

13 hours ago | 0

Answered

Putting color on binary image

Here's an easy way, assuming that your start image is indeed a binary image (i.e a 2D matrix with values 0 or 1): %binaryimage:...

Putting color on binary image

Here's an easy way, assuming that your start image is indeed a binary image (i.e a 2D matrix with values 0 or 1): %binaryimage:...

13 hours ago | 0

| accepted

Answered

Can anyone please explain that what each command is showing in the following program? How to select the dimesions? As well as recommend something to study the loops.

I recommend that you go through the free Matlab Onramp tutorial to learn the basics of matlab. The code you show is very basic (...

Can anyone please explain that what each command is showing in the following program? How to select the dimesions? As well as recommend something to study the loops.

I recommend that you go through the free Matlab Onramp tutorial to learn the basics of matlab. The code you show is very basic (...

13 hours ago | 1

Answered

Programmatically testing whether a variable is an optimoptions object

"those I've checked all seem to have 'optim.options.SolverOptions' as a parent in common." In that case: isa(opts, 'optim.opti...

Programmatically testing whether a variable is an optimoptions object

"those I've checked all seem to have 'optim.options.SolverOptions' as a parent in common." In that case: isa(opts, 'optim.opti...

16 hours ago | 0

| accepted

Answered

undefined function inside two if statements

"RoundedBoverT is a matrix and I want the if statement to use the correct equation depending on each value in the matrix" You n...

undefined function inside two if statements

"RoundedBoverT is a matrix and I want the if statement to use the correct equation depending on each value in the matrix" You n...

1 day ago | 0

Answered

How to calculate the intensity of every pixel in a RGB image

For a start, you'll have to define what the intensity of a colour pixel is. According to the code you wrote, it looks like you d...

How to calculate the intensity of every pixel in a RGB image

For a start, you'll have to define what the intensity of a colour pixel is. According to the code you wrote, it looks like you d...

1 day ago | 0

Answered

32Bit RGBA Image

"My Camera give me back an RGBA Image R8|G8|B8|A8 = 32 Bit" "size is : width*height*(bpp/3)" Shouldn't that be width*height*...

32Bit RGBA Image

"My Camera give me back an RGBA Image R8|G8|B8|A8 = 32 Bit" "size is : width*height*(bpp/3)" Shouldn't that be width*height*...

2 days ago | 0

Answered

download 2019b update 3

https://www.mathworks.com/downloads/web_downloads/show_isos?release=R2019b You probably need to be logged in with your mathwork...

download 2019b update 3

https://www.mathworks.com/downloads/web_downloads/show_isos?release=R2019b You probably need to be logged in with your mathwork...

3 days ago | 0

| accepted

Answered

imread>get_format_info error

does that mean that they are corrupted ? Very much so, I'm afraid. The two files you attached are just a long stream of 0s. The...

imread>get_format_info error

does that mean that they are corrupted ? Very much so, I'm afraid. The two files you attached are just a long stream of 0s. The...

3 days ago | 0

| accepted

Answered

Delete fields of struct based on starting characters

You do have to use fieldnames and rmfield indeed. It's only two lines and not complicated at all: fns = fieldnames(temp); temp...

Delete fields of struct based on starting characters

You do have to use fieldnames and rmfield indeed. It's only two lines and not complicated at all: fns = fieldnames(temp); temp...

3 days ago | 1

| accepted

Answered

Join several timetables with different variables and times and duplicates

With your example tables, this is trivially achieved with: synchronize(TT_A, [TT_B; TT_C])

Join several timetables with different variables and times and duplicates

With your example tables, this is trivially achieved with: synchronize(TT_A, [TT_B; TT_C])

3 days ago | 0

Answered

Plot HH:MM on x-axis with time data imported from excel

I was asking for an example of the original file in order to show you how to import it properly. Anyway, a variation of this sh...

Plot HH:MM on x-axis with time data imported from excel

I was asking for an example of the original file in order to show you how to import it properly. Anyway, a variation of this sh...

3 days ago | 1

Answered

How do I store values from a function in an array within a for loop?

something = 119:0.1:125; %give this variable a better name, a name that actually describes what the variable contain x = zeros...

How do I store values from a function in an array within a for loop?

something = 119:0.1:125; %give this variable a better name, a name that actually describes what the variable contain x = zeros...

4 days ago | 3

| accepted

Answered

How to plot from a line array?

Note that what you get out of plot are handles to the lines, not the line objects themselves. In normal circumstances the differ...

How to plot from a line array?

Note that what you get out of plot are handles to the lines, not the line objects themselves. In normal circumstances the differ...

4 days ago | 1

| accepted

Answered

Easiest way to make matrix have 3 sets of values

matrix = repelem((1:3)', [3, 2, 4]) is one way

Easiest way to make matrix have 3 sets of values

matrix = repelem((1:3)', [3, 2, 4]) is one way

4 days ago | 0

Answered

Using Sql in matlab to get data

Two things about what you've written, a matlab one, and a sql one, Matlab: DD = ['SELECT * ' 'FROM Countries WHERE IDNr ='] i...

Using Sql in matlab to get data

Two things about what you've written, a matlab one, and a sql one, Matlab: DD = ['SELECT * ' 'FROM Countries WHERE IDNr ='] i...

4 days ago | 0

| accepted

Answered

Save multiple functions on a single vector

"I have a different dataset for every day (Its temperature values for Longitude and latitude points and I have them combined in ...

Save multiple functions on a single vector

"I have a different dataset for every day (Its temperature values for Longitude and latitude points and I have them combined in ...

4 days ago | 1

| accepted

Answered

Error while evaluating UIControl Callback.

I cannot debug the code for you, I neither have the time or the necessary hardware to receive the serial data. The problem is n...

Error while evaluating UIControl Callback.

I cannot debug the code for you, I neither have the time or the necessary hardware to receive the serial data. The problem is n...

4 days ago | 0

| accepted

Answered

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.?

As per the error message: check for mismatched delimiters c(i+1) = c(i) - parError(c(i), m, g)/pardError(c(i), m, g)) I count ...

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.?

As per the error message: check for mismatched delimiters c(i+1) = c(i) - parError(c(i), m, g)/pardError(c(i), m, g)) I count ...

4 days ago | 0

| accepted

Answered

unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

The documentation is not very clear, but I believe that fscanf(arduino, '%c') is the same as fscanf(arduino) and that this reads...

unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

The documentation is not very clear, but I believe that fscanf(arduino, '%c') is the same as fscanf(arduino) and that this reads...

4 days ago | 0

Answered

Fillet between two intersecting lines

Other than calculating the equation of the arc yourself and plotting that, there's no way. Matlab is not a drawing/CAD program. ...

Fillet between two intersecting lines

Other than calculating the equation of the arc yourself and plotting that, there's no way. Matlab is not a drawing/CAD program. ...

4 days ago | 0

Answered

Sum specific values from a matrix

"What im trying to do is to add all the amplitudes off column 1 for a specific frequency range" This is a different question fr...

Sum specific values from a matrix

"What im trying to do is to add all the amplitudes off column 1 for a specific frequency range" This is a different question fr...

5 days ago | 0

| accepted

Answered

how can i create a 400 by 400 matrix with a pattern?

full(gallery('tridiag', 400)) If the subdiagonal, diagonal and superdiagonal were anything other than -1, 2, 1, for example: 1,...

how can i create a 400 by 400 matrix with a pattern?

full(gallery('tridiag', 400)) If the subdiagonal, diagonal and superdiagonal were anything other than -1, 2, 1, for example: 1,...

5 days ago | 0

| accepted

Answered

CELL2MAT does not support cell arrays containing cell arrays or objects.

Indeed cell2mat does not support converting a cell array containing objects into a matrix. It looks like your cell array contain...

CELL2MAT does not support cell arrays containing cell arrays or objects.

Indeed cell2mat does not support converting a cell array containing objects into a matrix. It looks like your cell array contain...

5 days ago | 0

Answered

Usage of regionprops3 command

but it is accepting RGB and HSV (three channel) images. No, regionprops3 is for volumes exclusively. If you pass it a 2D colour...

Usage of regionprops3 command

but it is accepting RGB and HSV (three channel) images. No, regionprops3 is for volumes exclusively. If you pass it a 2D colour...

8 days ago | 0

Answered

Why does a Java MessageDigest not reset in a for loop?

The first thing to be aware of, and the main reason for why your code doesn't work is that your thisStr is a string and not a ch...

Why does a Java MessageDigest not reset in a for loop?

The first thing to be aware of, and the main reason for why your code doesn't work is that your thisStr is a string and not a ch...

8 days ago | 0

Answered

Finding whether set of coordinates are within a bounding box set by a condition

Can't you just create an interpolant for your elevation and query the interpolant at your desired coordinates. It's then trivial...

Finding whether set of coordinates are within a bounding box set by a condition

Can't you just create an interpolant for your elevation and query the interpolant at your desired coordinates. It's then trivial...

9 days ago | 0