Domanda

determine within cell the coordinates (rows/columns) having equal 3 numbers

How can you determine within cell 'out' the coordinates (rows/columns) having equal 3 numbers? I would need to get a matrix th...

10 mesi fa | 3 risposte | 0

Domanda

transform the cell (50x95 cell) into the matrix 'in' (50x95x3 uint8)

Hi! How can I try to transform the cell 'out' (50x95 cell) like the matrix 'in' (50x95x3 uint8)? I am trying this way but I sho...

10 mesi fa | 1 risposta | 0

Domanda

save the RGB numbers of an image inside a cell

Hi. I would like to save the RGB numbers of an image (see RGB_value) inside a cell (see matrix) that has the same size as the im...

10 mesi fa | 2 risposte | 0

Domanda

saving the R G B values displayed with impixelinfo in an image into a matrix

Hi. How can I save the R G B values displayed with impixelinfo in an image into a matrix? (see red box) Here is a demo image: ...

10 mesi fa | 2 risposte | 0

Domanda

open some .mat files (whose names are saved inside a cell)

Hi! I need to open some .mat files (whose names are saved inside the 'name_cell' cell). I tried this way but, of course, it sav...

10 mesi fa | 1 risposta | 0

Domanda

Fixing the legend of a bar graph

Hi! I need to better arrange the legend of a bar graph. It is currently plotted like this: load CountArray_A.mat x = CountAr...

10 mesi fa | 1 risposta | 0

Domanda

colour variation (transparency) on the overlapping bars of 2 bar charts

Hi! I have two bar charts placed in the same figure: load C.mat figure hbh = barh(C(:,1), C(:,[2 3]),'stacked'); cm = ['b...

10 mesi fa | 1 risposta | 0

Domanda

select a portion of the matrix

Hi! I have the matrix 'matrix_C'. How can I stop (in this case) at the fifth row, i.e. when column 2,3,4 have 0 and column 5 a n...

10 mesi fa | 2 risposte | 0

Domanda

Sort the first column of an array in ascending order

Hi I need to sort the first column of an array in ascending order by also moving the numbers in the second column like this:

10 mesi fa | 1 risposta | 0

Domanda

create a matrix that keeps only the sequential numbers

Hi! I need to create a matrix that keeps only the sequential numbers in the first column (and keep the corresponding number in t...

10 mesi fa | 1 risposta | 0

Domanda

insert one of bar graph "inside" the other

Hello! I have two bar graphs. I would like to insert one of these graphs "inside" the other. Is it possible to do this? For exa...

10 mesi fa | 1 risposta | 0

Domanda

Separate numbers present within a cell on multiple rows

Hi. I retrieved the first N numbers (largest to smallest) from the second column of the 'CountArray' array. Now I wanted to de...

10 mesi fa | 2 risposte | 0

Domanda

Overlay and group two (or more) bar graphs (value by value)

Hi. I need to create a graph by overlapping and grouping the values on the vertical axis of two graphs I have generated: load C...

10 mesi fa | 1 risposta | 0

Domanda

understand if the cell is composed of all null elements

Hi! How can I understand if the cell consists of all null elements? I tried this way but it doesn't seem to work: CC = cell([3 ...

10 mesi fa | 1 risposta | 0

Domanda

compare char (and empty elements) present in two cells

Hi! I need to compare char (and empty elements) present in two cells. I made this code which works but it gives me an 'error' wh...

10 mesi fa | 1 risposta | 0

Domanda

Create a vector with the non-zero indices of a cell array

I have a cell array. I need to create a column vector that returns the non-empty row indices. I have tried this way but there i...

10 mesi fa | 1 risposta | 0

Domanda

move cells (contained within a cell) to coordinates other than the starting coordinates

Hi. I have a cell 'matrix_complete' and a coordinate matrix 'coord'. I need to transform 'matrix_complete' so that: the first...

10 mesi fa | 1 risposta | 0

Domanda

determine the coordinates with the 0's within a cell

Hi! I have this cell. How can I determine the coordinates where the 0's are? For example in 'matrix' I need to get a matrix wi...

10 mesi fa | 1 risposta | 0

Domanda

compare two matrices with isequal

Hi. I need to compare matrices present inside two separate cells (cells 'AAA' and 'BBB'). AAA = importdata("AAA.mat"); BBB = ...

10 mesi fa | 1 risposta | 0

Domanda

Store all results obtained from a for loop inside a matrix

Hi. I need to transform the matrix 'matrix' to 'matrix_out' by inserting the number '0' inside the matrix 'matrix' in reference ...

10 mesi fa | 2 risposte | 0

Domanda

import to the workspace a .mat file saved in a folder other than pwd

How can I import a .mat file saved in a folder other than pwd to the workspace? folder = 'C:\Users\Desktop\folder_test'; file ...

10 mesi fa | 2 risposte | 0

Domanda

transform an empty matrix '0x0 double' into a matrix '0x1 uint8'

Hello! How can I transform an empty matrix '0x0 double' into a matrix '0x1 uint8' as in the figure? For example in my case, I...

10 mesi fa | 2 risposte | 0

Domanda

transform an empty matrix '0x0 double' into a matrix '0x2 double'

Hello! How can I transform an empty matrix '0x0 double' into a matrix '0x2 double' as in the figure? For example in my case, ...

10 mesi fa | 3 risposte | 0

Domanda

Find the rows of a matrix A within another matrix B

Hi. I need to find the rows of matrix A (106x2) inside matrix B (172x2). Matrix A should contain the values of all rows within ...

10 mesi fa | 2 risposte | 0

Domanda

Change condition 'A=253' into 'A(A=253)=0' with multiple values (for example: A=70 and A=253)

Hi. I have this code: value_GS = importdata("value_GS.mat"); value_GS(value_GS=253) = 0; I want to change the last line of th...

10 mesi fa | 2 risposte | 0

Domanda

Inserting 0s in rows of an array

Hi. I have a matrix A1 and a vector B1. If I have a 0 in any row of vector B1, I need to insert 0s in that same row of matrix ...

11 mesi fa | 1 risposta | 0

Domanda

create empty row inside a vector

Hi. I need to analyze the rows of the vector 'value_GS_test' and transform only the numbers 254 and 255 (if any) into '[]' while...

11 mesi fa | 1 risposta | 0

Domanda

error in applying the condition to the if loop

Hi. I need to change all lines with 101 and [100;101] in 'test_2' with '[]' in both 'test_2' and 'test_1'. I succeeded with 101...

11 mesi fa | 1 risposta | 0

Domanda

split a vector and save it as a cell (1xN)

I have three vectors: vector_1 has numbers from 69 to 98; vector_2 has numbers from 69 to 78 and 82 to 98; vector_3 has numbe...

11 mesi fa | 1 risposta | 0

Domanda

transform a cell into a column vector

Hi. I have a cell 'test' characterized in the first row by a 29x1 array and in the second row by a 27x1 array. I want to get a...

11 mesi fa | 1 risposta | 0