Respondida
Save in a string the values obtained after varfun and grouping
If you want to create a new table with two new variables, one for the number of unique countries and one for the list of unique ...

casi 8 años hace | 1

| aceptada

Respondida
Can anybody help me to execute this code.....................Message too large to fit in Cover Object..............I am getting this error,
There are many things wrong with your question. You didn't bother formatting your post properly, thankfully Rik did that for you...

casi 8 años hace | 1

Respondida
How to delete a loaded variable with a changing name in a for loop?
The whole mess would have been avoided if you'd given an output to load. That would remove the need for |eval| and for clearing ...

casi 8 años hace | 2

| aceptada

Respondida
How to filter parts of a structure based on string contents?
_and more_ Details of and more would be useful to answer the question properly. Assuming you want all files that start wit...

casi 8 años hace | 0

| aceptada

Respondida
How do I transpose a vector within a cell?
cellfun(@tranpose, yourcellarray, 'UniformOutput', false) However, there's little point in using a cell array if all your v...

casi 8 años hace | 0

| aceptada

Respondida
Vectorized method to sum missed one values
You can replace the earlier part of this answer by the compiled version of <https://www.mathworks.com/matlabcentral/fileexchange...

casi 8 años hace | 1

Respondida
Mex Programming: How can I know the length of a struct array that is a field of a parent struct?
You misunderstood what the index refers to. It's the index of the parent structure, not of the field. So for structure root...

casi 8 años hace | 1

| aceptada

Respondida
What‘s the meaning of imshow(im1*2^4); ?
Display an image with its intensity multiplied by 16. If you don't know why it's multiplied by 16, ask the author of that cod...

casi 8 años hace | 0

| aceptada

Respondida
creating algorithm for specific computation
If I understood correctly: numerators = t - repmat(et(:), 1, numel(et)); %calculate t-et(1), t-et(2), etc. numerators(l...

casi 8 años hace | 1

| aceptada

Respondida
Distance between distance between [ x_0,y_00] to [x_10,y_100] coordinates in Cell array
I would build a <https://www.mathworks.com/help/matlab/ref/digraph.html |digraph|> from your cell array, where each node is a po...

casi 8 años hace | 1

| aceptada

Respondida
I got data with a lot of zeros. Now i want to empty every cell with a zeros, but i don't want to remove the cell from my data set. I got this: The data set is 20535x1536
A *matrix* cannot have empty cells. They must have a value. My suggestion is to use NaN (not a number) to mark those cells you c...

casi 8 años hace | 0

Respondida
Comparing two vectors to keep an entry of every value.
One way: uvals = unique([A, B]); valcount = max(histcounts(A, [uvals, Inf]), histcounts(B, [uvals, Inf])); C = repele...

casi 8 años hace | 0

Respondida
Typecasting a matrix of 200x8 uint8 to double
Transpose your |a| before reshaping into a vector: convert_double = typecast(reshape(uint8(a'), 1, []), 'double')

casi 8 años hace | 2

Respondida
Error matrix index is out of range for deletion?
_I don't understand what I am doing wrong_ Lots! As KSSV commented, first is the use of |eval|. |eval| is typically used b...

casi 8 años hace | 1

Respondida
How to separate a table into sub-tables by unique categories?
As said, it is much easier to calculate statistics by location if you don't split the table. You don't need to filter the table ...

casi 8 años hace | 0

Respondida
Determine if there are 3 consecutive rows and columns in a list of subscripts
One option: hasconseccols = any(accummarray(A(:, 1), A(:, 2), [], @(v) ~isempty(strfind(sort(diff(v))', [ 1 1])))) hasco...

casi 8 años hace | 0

Respondida
I want to read differently from xlsread as a uigetfile .csv
You request makes no sense. <https://www.mathworks.com/help/matlab/ref/uigetfile.html |uigetfile|> does not read files. It promp...

casi 8 años hace | 0

Respondida
How can I do to avoid using eval?
The code to fix is not the one you show unfortunately, It's the code before that which creates all these numbered I variables. ...

casi 8 años hace | 1

| aceptada

Respondida
This is amy code it is not working why?
The problem is the dot after |exp| that shouldn't be there and the missing dots before the two * % v-----------...

casi 8 años hace | 0

Respondida
Help preallocating variables for a table
_C is a matrix with doubles in it_ In that case, function caTable = makeCaTable(caCM) %doc goes here % caCM...

casi 8 años hace | 0

| aceptada

Respondida
error on accessing images reading from sub folders.
Assuming that |numberOfImageFiles| is indeed the number of image files, why are you passing that to |rgb2gray| which expects an ...

casi 8 años hace | 0

| aceptada

Respondida
Why am I getting an error of subscripted assignment dimension mismatch
_Do you think that from what i explained of what should i do the code is wrong? then how should I do it?_ The code you have w...

casi 8 años hace | 1

| aceptada

Respondida
Extracting the XY + RGB value from an image.
Assumming your LED array has as many leds as pixels in the GIF, then the following code should translate the GIF into the CRGB a...

casi 8 años hace | 1

| aceptada

Respondida
fprintf with repeating labels and numbers
First a warning, never use |length| on a matrix. If your |x| has less than 3 rows or if you ever increase the number of columns ...

casi 8 años hace | 1

| aceptada

Respondida
Why is it showing " Image is too big to fit on screen; displaying at 67% " while processing a video?
Well, the message is clear, you're displaying an image (with |imshow|) and the size of the image is bigger than the size of your...

casi 8 años hace | 1

| aceptada

Respondida
How to save image file (.png) in a .mat structure?
I'm not sure what you think |image| does. It's a function to display a matrix as an image. For an image, you'd be better off usi...

casi 8 años hace | 0

Respondida
Fast reshaping or squeezing
_I need to reshape A to dimension 6x200000._ I assume you mean you need to reshape the 1x6x200000 submatrix to 6x200000. ...

casi 8 años hace | 1

| aceptada

Respondida
How to convert thermal image(From FLIR T400) into corresponding temperature in matlab?
The image you get from an infrared camera should be greyscale. Typically, the camera software may use false colours to make it e...

casi 8 años hace | 0

Respondida
how to write this c++ code in matlab form
_is it correct_ Certainly not! It doesn't look like you know what the <https://www.mathworks.com/help/matlab/ref/zeros.html |...

casi 8 años hace | 0

Cargar más