Answered
Whos function in gui
_"the first block of function generates error"_. And we are supposed to guess what the error is? When you get an error always po...

9 years ago | 0

| accepted

Answered
come si inseriscono le parentesi quadre?? Grazie
The images I've found of italian keyboards would indicate that the square brackets |[]| are obtained by using |ALT GR| + |&egrav...

9 years ago | 1

Answered
How can I reset the colored image after I converted into grayscale?
Nothing is stopping you from performing histogram equalisation on each colour channel, if that's what you're after: rgbimag...

9 years ago | 0

| accepted

Answered
Hi everyone, i would like to have an help about image analysis
To me, the question does not make much sense. resizing is just a spatial filter like any other. It's up to you or your algorithm...

9 years ago | 0

Answered
How to check whether value in the next row is the same as in the previous row?
You haven't really answered my question about the data structure. It was also not obvious from your question that there could be...

9 years ago | 0

Answered
Averaging over a symmetric matrix
I don't see how you get a smaller matrix but doing the averaging is trivial: (yourmatrix + yourmatrix.') / 2 You can |tr...

9 years ago | 2

| accepted

Answered
How can i have subvectors ?
If your vector does not have consecutive identical values then it's easy to do. Take the |sign| of the |diff| of your vector. Mo...

9 years ago | 0

Answered
Generate an error that refers to the line where the error occurred.
It may be possible to do what you want by passing to the |error| function a custom error structure, in which you craft the |stac...

9 years ago | 0

Answered
how should I create ring(circular) shaped structuring element?
You can specify any arbitrary neighbourhood matrix to |strel|. You could generate that ring matrix by subtracting two disk struc...

9 years ago | 4

| accepted

Answered
how can I change data type of an array?
I don't see what's unclear about the error message. You do not have a license for the Fixed-Point toolbox (or it's not installed...

9 years ago | 0

Answered
Can I make video frame interpolation in MATLAB?
_Can I use MatLab for whole process:_ Certainly, matlab is like any other programming language. You can do almost anything you w...

9 years ago | 0

Answered
can any one send me 'stopSignsAndCars.mat' file?
We could certainly give you a mat file called |stopSignsAndCars.mat| with nothing in it. A mat file is just a container for w...

9 years ago | 1

Answered
nested structure from a vector
_I like to understand what I am doing wrong_ It's easy to tell you what is wrong, harder to tell you how to fix it as we don't k...

9 years ago | 2

Answered
How to read string data from a csv file?
Even simpler than |xlsread| is to use <https://www.mathworks.com/help/matlab/ref/readtable.html |readtable|> which should be abl...

9 years ago | 7

Answered
Scatter not ignoring NaN in image
As mentioned, the NaNs are correctly ignored in R2017a. I don't have R2015b installed anymore to test. You can easily work aroun...

9 years ago | 2

| accepted

Answered
How can I generate a random matrix with 0's and 1's?
cell2mat(arrayfun(@(~) (randperm(m) <= d)', 1:n, 'UniformOutput', false)) would be one way.

9 years ago | 2

| accepted

Answered
how do i write this equation in matlab?
How about following the link for the <https://www.sfu.ca/~ssurjano/Code/powellm.html matlab implementation> right on the very pa...

9 years ago | 3

Answered
Where can i download Matlab R2012b . Please provide link to download .
You go in your account, and click on the download button for any of your active license. That gets you to <https://www.mathworks...

9 years ago | 0

Answered
How to find the value of the pixel with highest value in an image?
Read the documentation of the |max| function. When applied to a 2D matrix, |max| returns a vector of the maximum value of each c...

9 years ago | 2

| accepted

Answered
Passing variable to function with similar name
Rather than using excel to talk to matlab (through the spreadsheet link), I'd use matlab to pull the data from excel. This would...

9 years ago | 1

Answered
Concatenate cell arrays from structs
|1x8 cell array| means 8 columns and *one row*. So it looks like your cell arrays have all the same number of rows, exactly one....

9 years ago | 2

Answered
Matlab says that the 'e' is undefined
In matlab, and many languages, the exponential function is <https://uk.mathworks.com/help/matlab/ref/exp.html |exp|>, not |e|. ...

9 years ago | 3

Answered
Why 0.6 is not equal to 0.2*3 ??
You need to learn more about floating point numbers: <https://uk.mathworks.com/matlabcentral/answers/57444 faq-why-is-0-3-0-2...

9 years ago | 1

Answered
Problem in using Fwrite
|'%e'| is the flag for scientific format. The spaces, you just put them in the format string, so: fprintf(fid, '%e %e', A...

9 years ago | 0

Answered
How can I make a pattern of binary digits like this?
Another solution, which *does not* involve generating all bit patterns and then discarding the unwanted ones: M = 4; N =...

9 years ago | 2

| accepted

Answered
Convert a struct to an Object of a class.
Conceptually, there is not much difference between a structure and a class, both are a container for fields. The main difference...

9 years ago | 0

| accepted

Answered
Separate duplicates into different numeric matrices
m = [100 1 0.44 100 2 0.12 100 3 1.86 100 1 0.02 100 2 3.29 100 3 0.39 101 1 0.32 101 2 0.29 101 3 0.5...

9 years ago | 0

Answered
Can I apply a graylevel mask on a color image?
It can be done any numbers of ways. Probably the simplest is to use |regionprops| on your label image and ask for the |'PixelIdx...

9 years ago | 1

| accepted

Answered
Fill Cell-Array Columns with vectors
Since you're using R2016a, why aren't you using <https://www.mathworks.com/help/matlab/ref/readtable.html |readtable|> instead o...

9 years ago | 2

| accepted

Load more