Réponse apportée

Why does this error happen?

Your code expects that NewTemplates is a cell array (or an object that supports {} indexing). It isn't. Presumably, NewTemplates...

Why does this error happen?

Your code expects that NewTemplates is a cell array (or an object that supports {} indexing). It isn't. Presumably, NewTemplates...

plus de 4 ans il y a | 0

Réponse apportée

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('...

plus de 4 ans il y a | 0

Réponse apportée

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.

plus de 4 ans il y a | 0

Réponse apportée

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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée

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:...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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 (...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 0

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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*...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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])

plus de 4 ans il y a | 0

Réponse apportée

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...

plus de 4 ans il y a | 1

Réponse apportée

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...

plus de 4 ans il y a | 3

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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

plus de 4 ans il y a | 0

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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 ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 0

Réponse apportée

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. ...

plus de 4 ans il y a | 0

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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,...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 1

Réponse apportée

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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

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...

plus de 4 ans il y a | 0