Domanda

Add nodes (3D) placed at a distance H from starting nodes (3D)

Hi! Is there any way to generate other red coordinates on the same plane and with a distance H = 0.1 from the black coordinates ...

2 mesi fa | 1 risposta | 0

Domanda

Select only those nodes of an rx3 matrix placed at a distance 'd' from a node P (1x3)

Hi! Is there any way to extract the coordinates of the nodes of the similar circle on the left? I had thought of something rela...

2 mesi fa | 1 risposta | 0

Domanda

use the 'patch' function with different results (using different matrices)

Hi! I have two matrices: 'V' and 'trace'. Using patches with V generates a completely black surface on the figure and I'm fine...

3 mesi fa | 2 risposte | 0

Domanda

generate new coordinates (starting from initial coordinates) that are arranged outwards (by a distance H) and on the same plane

HI! Is there a way to generate new coordinates, starting from the 'trace' matrix, which are arranged outwards (by a distance H) ...

3 mesi fa | 3 risposte | 0

Domanda

Determine the intersection coordinates between a 3D object and an infinite plane

Hi! I would like to know if there is a way to determine the intersection coordinates between a reported 3D geometry (tube) and a...

3 mesi fa | 1 risposta | 0

Domanda

double the number of coordinates of a vector while maintaining the trend of the line created with that coordinates

HI! Is there a way to double the number of coordinates while maintaining that trend? load L figure plot3(L(:,1),L(:,2),L(:,3)...

3 mesi fa | 1 risposta | 0

Domanda

generate triangular mesh starting from the external nodes (rx3) of a circle

HI! I should generate a triangular mesh starting from the external nodes (rx3 matrix) of a circle arranged in space. load('V.ma...

3 mesi fa | 2 risposte | 0

Domanda

create a string like "AA";"BB";"CC";"DD", and so on

Hi! I would like to create a string like "AA";"BB";"CC";"DD",and so on. The idea is similar to this: letters_str = string(mat2...

3 mesi fa | 1 risposta | 0

Domanda

transform infinite plane into finite circular plane

Is it possible to generate a plan of limited dimensions, for example a 10x10 square? line = importdata("line_w.mat"); normal ...

3 mesi fa | 2 risposte | 0

Domanda

create a normal plane passing through a point P knowing the coordinates of the direction of the Normal vector to point P

HI! Is there a way to create a plane normal to a coordinate of a 'line_test' matrix (e.g. the 'P' coordinate)? If it can be use...

3 mesi fa | 1 risposta | 0

Domanda

change the legend of a pie chart

Hi. I have the following pie chart: matrix_new = importdata("matrix_new.mat"); % import labels = matrix_new(:,1); percentag...

3 mesi fa | 1 risposta | 0

Domanda

extract a number N of equally spaced rows within a matrix

HI! I have a number N and a matrix with 100 rows and 2 columns. How can I recover N rows of the matrix so that they are as equi...

3 mesi fa | 2 risposte | 0

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

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

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

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

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

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

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

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

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

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

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

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

3 mesi fa | 2 risposte | 0

Domanda

merge multiple cells in only one

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

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

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

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

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

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

3 mesi fa | 2 risposte | 0