답변 있음
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...

6년 초과 전 | 0

답변 있음
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('...

6년 초과 전 | 0

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

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 2

| 수락됨

답변 있음
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:...

6년 초과 전 | 1

| 수락됨

답변 있음
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 (...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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*...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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])

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 1

답변 있음
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...

6년 초과 전 | 3

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

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

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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 ...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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 ...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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. ...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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,...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 2

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

더 보기