Domanda


delete all the decimal digits that are 0 after the first decimal place
Hi! I need to transform the vector V with only the first decimal. Is there an easy way to do this? For example I am trying this...

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


merge multiple cells in only one
Hi! How can I merge these two cells? Final results:

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


Arrange numbers circularly around the pie chart
I create this graph chart: matrix = importdata("matrix_out_INF.mat"); % =============== % Filter the matrix to include on...

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


extract all rows of a matrix except 'r' (vector) rows
Hi! I need to extract all rows of 'matrix' except 'r' rows. matrix = [54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64; 65]; r = [1;...

circa un anno fa | 3 risposte | 0

3

risposte

Domanda


Subdivide a cell, based on the number of columns, inside a for loop
Hi! I would like to compact the rows 'char2string1', 'char2string2', ... inside a for loop. How could I do this? char2string =...

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


transform the cell 'string' containing strings into a single string
Hi! I need to transform the cell 'string' containing strings into a single string, like this: string_new = "54 55 56 57 59 60 6...

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


Apply a color to a slice of the pie chart
I need to apply white color to a slice of the pie chart. I used the following code but it creates the slice in black color even ...

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


create a pie chart knowing the percentage value
I have the matrix 'matrix' characterized by the first column by numbers and the second column by percentage values. matrix = [7...

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


create a pie subgraph with assigned percentage values
I am using the following code to create a pie chart: number = [78;79;80;81;82;83;84;85;86;87;88]'; value = [4509;5239;6400;907...

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


pie chart creation with name (number) and corresponding percentage
Hi! I would like to create a pie chart like in the present demo: x = [1,2,3]; p = pie(x); pText = findobj(p,'Type','text');...

circa un anno fa | 3 risposte | 0

3

risposte

Domanda


enter values from 0 to N (imposed value) with step of 100 on the x-axis of the bar graph
Hi. I need to change the values on the x-axis of a bar graph. I have tried in the following way but it doesn't seem to work. W...

oltre un anno fa | 2 risposte | 0

2

risposte

Domanda


Extract rows from a matrix considering continuous numbers in the first column
Hi! I would need to extract from the matrix 'matrix' the rows that start at 'r_max_total' and extend to the top and bottom rows ...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


Change values of 'x-axis (bar graph) as integers
Hi! I have an example of a generated bar graph: Automatically Matlab generates an x-axis with the values multiplied by 10^4. ...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


for loop for generate overlay bar graphs
I generated a bar graph of the following type: load matrix.mat matrix = matrix(1:2,:); x = matrix(:,1)'; wR = 0.5; wB =...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


transform bar chart with separate bars (for each value of y) to bar chart with overlapping bars
Hi. I need to transform this figure: load matrix.mat matrix = matrix(5:7,:); figure(); cm = [1,0,0; 0,0,1; 0,1,0; 1,0,0.5...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


Extract some rows of the matrix with the find command
Hi. I would like to select rows from a 'matrix' array that have values between 0 and 2 in the third column of 'matrix'. I was ab...

oltre un anno fa | 2 risposte | 0

2

risposte

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

oltre un anno fa | 3 risposte | 0

3

risposte

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 2 risposte | 0

2

risposte

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

oltre un anno fa | 2 risposte | 0

2

risposte

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 2 risposte | 0

2

risposte

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:

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 2 risposte | 0

2

risposte

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

oltre un anno fa | 1 risposta | 0

1

risposta

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

oltre un anno fa | 1 risposta | 0

1

risposta

Carica altro