Domanda

split cell (containing strings) into cell according to the value of C (column)

Hi! Is there a way to split cell 'a4' (containing strings) into cell 'a4_new'? In particular I would like to divide the column...

7 mesi fa | 1 risposta | 0

Domanda

pie chart not complete - a pie is missing

HI! Why is the pie chart not complete? I would like to take into account the values present in 'matrix_analysis'. load matrix_a...

7 mesi fa | 1 risposta | 0

Domanda

extract the number with only the first decimal number

I have to extract the number with only the first decimal number Examples: 1.23 -> 1.2 2.49 -> 2.4 4.77 -> 4.7 7.51 -> ...

7 mesi fa | 1 risposta | 0

Domanda

divide the matrix (Rx2) into submatrices based on the values of the second column

HI! I tried to split the 'matrix_out' matrix into submatrices with steps of 0.1 and for the most part I succeeded. load matrix_...

7 mesi fa | 1 risposta | 0

Domanda

insert two vertical axes (left and right) into the same bar graph

Hi! How can I enter the correct values into the y-axis on the right? They must match the values of CountArray(:,3)! load CountA...

7 mesi fa | 2 risposte | 0

Domanda

remove numbers of an matrix from another matrix

Hi. How can I remove numbers of an matrix from another matrix? I have two matrices: M1 = [7 21; 41 52; 47 65; 14 41; 14 55]; ...

7 mesi fa | 2 risposte | 0

Domanda

transform the number cell so that only numbers (with or without decimals) excluding zeros are visible

Hi. I want to transform the number cell "N" so that only numbers (with or without decimals) excluding zeros are visible (see for...

7 mesi fa | 3 risposte | 0

Domanda

add text above the legend on pie chart

Hi! I would like to add text above the legend (as shown). Is there the possibility of doing this? Here is the code: matrix ...

7 mesi fa | 1 risposta | 0

Domanda

rounding a number up to a decimal point

Hi! I have a number: N = 5.00001:5.99999; % N greater than 5 and less than 6 I want to round the number N up so that I get ...

7 mesi fa | 1 risposta | 0

Domanda

Transform double to char with one or two decimal places

I have a series of numbers: n_A = 3.15; n_B = 3.7; I have to transform them into char considering 1 or 2 decimal digits based...

7 mesi fa | 1 risposta | 0

Domanda

transform exponential number to decimal

Hi. I have the following cell: M1 = importdata("M1.mat"); A = compose('%d (%2d%%)', [M1(:,1), M1(:,2)]); How can I turn expon...

7 mesi fa | 2 risposte | 0

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

7 mesi fa | 2 risposte | 0

Domanda

merge multiple cells in only one

Hi! How can I merge these two cells? Final results:

7 mesi fa | 1 risposta | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 3 risposte | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 2 risposte | 0

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

8 mesi fa | 2 risposte | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 1 risposta | 0

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');...

8 mesi fa | 2 risposte | 0

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

8 mesi fa | 2 risposte | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 1 risposta | 0

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

8 mesi fa | 2 risposte | 0

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

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

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

8 mesi fa | 2 risposte | 0