photo

Chao Zhang


Last seen: 5 mois il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


How I can detection column indexes of string 'rk_accept_metaln' (n=1,2,3,4....)
I want to use the folloing code to automatic detection column indexes of 'rk_accept_metaln'(n=1,2,3,4,...n) For example, run th...

presque 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to use writetable to write a file and save this file in the specific location
Hi all, I have a structure and use struct2table to convert it as table, then use writetable function to generate a xlsx file, b...

presque 3 ans il y a | 1 réponse | 0

0

réponse

Question


How to plot the complete data in a structure
Hi all, The following picture is the screenshot of a structure. I want to plot all X Y X coord of this structure, but my code c...

environ 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to deal with the presence of [] during the summation of arrays
Hi all, There are four columns in each row, I want to add four arrays in each row to get a new array, but some of the rows have...

environ 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to Split array to sub arrays
Hi, I have a question about how to split the initial array to sub arrays %Introduce the endpoints of dividing lines(from left t...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to adjust the legend of pie chart
The following is my code figure %---------------------------------------------------------------------- subplot(2,3,1...

plus de 3 ans il y a | 2 réponses | 0

2

réponses

Question


How to sum the values of a fieldname of struct
Hello! I have a struct 'STC_ORE', and I want to calculate the values of fieldname' ORE_TON', so I want a code, but there are som...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


how to ask users to input different number of values at each time according to a specific condition
There is a code that presented in the following, that I want to ask users to input different number of values according to a spe...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to realize the variable number of input parameters
we usually introduce two endpoints (x1,y1) and (x2,y2) for a line N = 50; prompt = transpose({'X1:', 'Y1:', 'X2:', 'Y2:'})...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to automatically judge points belong to the corresponding sections in a 2D square
I introduce two cutoff points A(x1,y1) and B(x2,y2) to form a linear equation to divide a two-dimensional square (i.e. WB) into ...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to add new cell array into a old struct
HI ALL, I wrote a cold for a old struct that STC_ORE is presented in the following picture STC_ORE = struct('Group',str_ore,...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to find multiple table column numbers by column names?
Using the following code, can get the column number of 'rk_mill_tonnage' in the table. col_ind_rmt = find(string(G_Value.Prop...

plus de 3 ans il y a | 2 réponses | 0

2

réponses

Question


How to create a struct
There is a simple way to create a struct like the following picture, i.e ROCK = struct('ROCK0', value1, 'ROCK44', value2, 'ROCK5...

plus de 3 ans il y a | 2 réponses | 0

2

réponses

Question


How I can detection column indexes of string 'rn_mill_tonnage' (n=1,2,3,4....)
I want to use the folloing code to automatic detection column indexes of 'rn_mill_tonnage'(n=1,2,3,4,...n) For example, run the...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


Introducing a bug in the for loop
M_ROCK = rock; M_ROCK = array2table(M_ROCK,'VariableNames',G_Value.Properties.VariableNames); %Enter the numbe...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to split a 3D matrix into multiple 2D matrices
Now I have a 36x9xN three-dimensional matrix, N is a variable. How to split this three-dimensional matrix into N 36x9 two-dimens...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


Error : Subscripted assignment dimension mismatch.
When I ran the following code to the line 'M_ORE(i,:) = table2array(M_ROCK(i,:));', the error 'subscripted assignment dimension ...

plus de 3 ans il y a | 1 réponse | 0

0

réponse

Question


How to divide the original matrix into different matrices according to the strings
My idea is create the 'M_ROCK' matrix if the rock_index ==2 (i.e. there are multiple rock types in the model). And then input th...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to create multiple strings
The following code, I use eval to create multiple similiar matrixs num=input('Please enter the number of rock types:'); %Set...

plus de 3 ans il y a | 2 réponses | 0

2

réponses

Question


How to delect the zero values in table
There is a table in matlab, I want to know how to delete the entire row with zero values? Many thanks in advance.

plus de 3 ans il y a | 2 réponses | 0

2

réponses

Question


How to automically read data from excel file
I am newer to learn Matlab, so I would like to ask for some help. I use 'menu' function to create 3 buttons, such as 'A', 'B', ...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


How to plot multiple cubes if I know the x,y,z centroids and dimension
Hi fellows, Could you tell me how to plot multiple cubes using x,y,z-centroids and dimension? For example, I have some original ...

presque 4 ans il y a | 1 réponse | 0

1

réponse