Create a matrix and a map of Hydrologic Soil Group values using integer or character values
I want to create a matrix and a map of Hydrologic Soil Group (HSG) values using integer or character values. I have a vector of 8853×1 with the HSG letters (A, B, C or D) for different locations in St. Croix island (USVI). I want to produce a 102×263 matrix with those letters, using different scripts that I have available. The problem is that Matlab doesn’t let me produce a matrix with letters or character values (char format). The thing is, if I use numbers instead of letters (1, 2, 3 and 4), the matrix that is produced has all the numbers in double or float format, with decimal digits, and not whole numbers or integers.. But when I converted the vector to integer format, matlab doesn’t produce a matrix from that vector. I will use this matrix to plot a map of the island showing different colors according to the HSG values or letters. How can I produce a matrix and a map with integer and/or character values using a 8853×1 vector? Should I just round up the numbers in the matrix to the nearest whole number?I want to create a matrix and a map of Hydrologic Soil Group (HSG) values using integer or character values. I have a vector of 8853×1 with the HSG letters (A, B, C or D) for different locations in St. Croix island (USVI). I want to produce a 102×263 matrix with those letters, using different scripts that I have available. The problem is that Matlab doesn’t let me produce a matrix with letters or character values (char format). The thing is, if I use numbers instead of letters (1, 2, 3 and 4), the matrix that is produced has all the numbers in double or float format, with decimal digits, and not whole numbers or integers.. But when I converted the vector to integer format, matlab doesn’t produce a matrix from that vector. I will use this matrix to plot a map of the island showing different colors according to the HSG values or letters. How can I produce a matrix and a map with integer and/or character values using a 8853×1 vector? Should I just round up the numbers in the matrix to the nearest whole number? I want to create a matrix and a map of Hydrologic Soil Group (HSG) values using integer or character values. I have a vector of 8853×1 with the HSG letters (A, B, C or D) for different locations in St. Croix island (USVI). I want to produce a 102×263 matrix with those letters, using different scripts that I have available. The problem is that Matlab doesn’t let me produce a matrix with letters or character values (char format). The thing is, if I use numbers instead of letters (1, 2, 3 and 4), the matrix that is produced has all the numbers in double or float format, with decimal digits, and not whole numbers or integers.. But when I converted the vector to integer format, matlab doesn’t produce a matrix from that vector. I will use this matrix to plot a map of the island showing different colors according to the HSG values or letters. How can I produce a matrix and a map with integer and/or character values using a 8853×1 vector? Should I just round up the numbers in the matrix to the nearest whole number? matrix array, colormap, vectors MATLAB Answers — New Questions