Question


organize the inside of the .txt file
How can I organize the data.txt file to get the data_new.txt file?

2 years ago | 1 answer | 0

1

answer

Question


extract row from a cell
Hi! I generated a cell similar to this one: a = {'home'}; b = {'ball' , 'cake' , 'ice'}; c = {'car','moto'}; d = {'money','s...

2 years ago | 1 answer | 0

1

answer

Question


combine cells with different size
I have several different cells. How can I combine them? I have tried it this way. a = {'ball' , 'cake' , 'ice'}; b = {'home'}...

2 years ago | 1 answer | 0

1

answer

Question


only consider fields that exist within a structure
Hello! I have a mystruct structure. Within this struct I have several fields to consider (for example: data, number, variable, r...

2 years ago | 2 answers | 0

2

answers

Question


fix content .txt file (organize the inside of the .txt file)
Hi! How can I transform the file data.txt to data_new.txt?

2 years ago | 2 answers | 0

2

answers

Question


add words to the end of a path
Hi! I need to add the string or char my version or my version complete to the end of a path. I tried this way but I can't find...

2 years ago | 1 answer | 0

1

answer

Question


generate a string with the numbers 1:999
Hello! I need to generate a string with the numbers 1:999. I wrote these lines of code: row_number = 1:999; column_number = ...

2 years ago | 2 answers | 0

2

answers

Question


split struct based on description
Hi. How do you subdivide the struct into multiple structs as shown in the figure?

2 years ago | 1 answer | 0

1

answer

Question


select, only once, the names present in a struct
I have the following struct. Is it possible to select, only once, the names in the 'SeriesDescription' column? So I would need t...

2 years ago | 2 answers | 0

2

answers

Question


create a struct with two columns
Hi. I want to create a structure like the one in the figure consisting of two columns: 'name' and 'folder'. I already have th...

2 years ago | 2 answers | 0

2

answers

Question


Apply a color variation to a triangular face
Hi! I have this code. I would like to color the face of the triangle taking into account the RGB colors present on the three nod...

2 years ago | 1 answer | 0

1

answer

Question


Apply a specific RGB color on plot3
Hi. I have this code. selection = importdata("selection.mat"); figure plot3(selection(:,1),selection(:,2),selection(:,3),'b.'...

2 years ago | 1 answer | 0

1

answer

Question


Exclude some nodes from a 3D point cloud (select only neighboring nodes)
Hi! I would need code to create a matrix of nodes excluding those circled in red. Is there any code that I could use? I would n...

2 years ago | 1 answer | 0

1

answer

Question


Plot a plane from 3 points
Hi, I want to create a plane that goes through points A, B, C. I am using the "plot_line" function found on "file exchange" belo...

3 years ago | 2 answers | 0

2

answers

Question


Plot colored angle between two lines on the YZ plane
Hi. I would like to plot on my figure, the black corner (see image below) on the YZ plane. How can I do it? meta = [14.97, 29...

3 years ago | 2 answers | 0

2

answers

Question


Identify triangular faces of a mesh
Hi! How can I identify the faces highlighted in red within the "faces_part" matrix? nodes_part = importdata("nodes_part.mat"); ...

3 years ago | 1 answer | 0

1

answer

Question


use two indexes at the same time in a for loop
Hi! I have the following matrix: M = [26 45 15 47 78 9 6 45 14 66 95 6; 65 35 96 39 7 88 47 11 14 75 77 86; 41 ...

3 years ago | 2 answers | 0

2

answers

Question


remesh code for a 3D geometry
Hi. I need to remesh a 3D geometry. I have both node coordinates and triangle faces. I have been using this somewhat dated code ...

3 years ago | 2 answers | 0

2

answers

Question


problem on saving within a folder of the figures I'm going to generate
I have a problem on saving the figures I go to generate. Here is the code I am using to save the images: filePattern_transfor...

3 years ago | 1 answer | 0

1

answer

Question


Automatically identify two numbers within an matrix
Is there any way to automatically locate two numbers within a matrix? For example: for the file "matrix_1.txt" I am interested...

3 years ago | 2 answers | 0

2

answers

Question


Display pixel colors from their known RGB values
Hi. I would like to start from the known RGB values (in matrix) to visualize a colored figure. In detail: I want to create a m...

3 years ago | 1 answer | 0

1

answer

Question


Changing the number of rows in a vector by adding repeated rows
I have a vector V [76x3 double] and I want to make it V1 [1022x3 double]. I want to get the vector V1 in the following way: ->...

3 years ago | 2 answers | 0

2

answers

Question


Retrieving numbers present within an array by knowing the coordinates
Hi! I have a fairly easy question but whose error I can't figure out. I have the array "image_DEF_number_pixel" and the coordin...

3 years ago | 2 answers | 0

2

answers

Question


create a vector w1 having the same length as another vector w but containing certain x values
Hello! I want to create a vector w1 having the same length as another vector w but containing certain x values. How can I fix th...

3 years ago | 1 answer | 0

1

answer

Question


Find the (x,y) coordinate of a "white" pixel (from calculated matrix)
Hello! I want to determine the coordinate (x,y) of any "white" pixel that is in contact with a "black" pixel. For example, in ...

3 years ago | 2 answers | 0

2

answers

Question


color all pixels in an image black except white pixels
Hi! From the attached .png figure [rxcx3] I would like to keep only the white pixels and turn all other pixels to black. How can...

3 years ago | 1 answer | 0

1

answer

Question


select a pixel on the grayscale image to get a mask
I would need to understand how to select the pixel from the figure on the left (e.g., with the ginput command) in order to get t...

3 years ago | 1 answer | 0

1

answer

Question


Color in white only pixels defined by a matrix [rx2]
Hi! I would like to keep white pixels only at the desired coordinates ("contour") while transforming other pixels with black col...

3 years ago | 1 answer | 0

1

answer

Question


apply region growing code to my image
Hi! I am using this code (see link) although it is a bit old. The example given by the author works: load example figure, imsh...

3 years ago | 2 answers | 0

2

answers

Question


Coloring pixels with a specific color
Is it possible to create an image (like the original) in which only the desired pixels are colored? For example, I want to col...

3 years ago | 1 answer | 0

1

answer

Load more