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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

Beantwortet
can anyone help me to find the error ?
[ xapp,it] = newton(x0,esp,@f,df,nmax) should probably fix the problem.

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 2

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

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

fast 5 Jahre vor | 3

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

Beantwortet
Easiest way to make matrix have 3 sets of values
matrix = repelem((1:3)', [3, 2, 4]) is one way

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 1

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

Mehr laden