MATLAB
Using randi in MATLAB to get random values: values are not distributed uniformly
I am generating a random population of strings made of 0s and 1s. I am using randi(2)-1 to get a randomly generated single value 0 or 1. I expect to get 1s almost as frequently as 0s. Instead, when I[详细]
2023-04-12 19:42 分类:问答How to lock image dimensions in MATLAB
So I have this matrix in MATLAB, 200 deep x 600 wide. It represents an image that is 2cm deep x 6cm wide. How can I plot this image so that it is locked into prope开发者_如何学Cr dimensions, i.e. 2cm[详细]
2023-04-12 16:34 分类:问答How to extract non-vertical column from matrix in Matlab
I have matrix A and a vector b, which specifies column index of the element to be extracted for each corresponding row of the matrix.[详细]
2023-04-12 16:13 分类:问答Axis coordinates to pixel coordinates? (Matlab)
How can i convert the axis coordinates into pixel coordinates? I have a set of data which include the negative and floating va开发者_开发问答lues, i need to put all of the data into the image. But the[详细]
2023-04-12 16:12 分类:问答Matrix dimensions must agree?
Hi I keep getting the error: >> maxM =开发者_JAVA技巧 max(M); >> minM = min(M); >> Mnormalize = ((M-minM)./(maxM-minM) - 0.5 ) *2;[详细]
2023-04-12 14:03 分类:问答How i can make matlab precision to be the same as in c++?
I have problem with precision. I have to make my c++ code to have same precision as matlab. In matlab i have script which do some stuff with numbers etc. I got code in c++ which do the same as that sc[详细]
2023-04-12 12:39 分类:问答MATLAB: Verify if a SSH tunnel to AWS is open.
I\'m using MATLAB to connect to a database hosted in AWS (using the database toolbox). I开发者_如何转开发n order to do that, I supply the URL of the database as a local port and create a SSH tunnel to[详细]
2023-04-12 12:16 分类:问答How to draw the contour of the objects in label matrix
I have a label matrix of segmented image. For example, 1 1 1 2 2 2 3 3 3 4 4 4 1 1 1 2 2 2 3 3 3 4 4 4 1 1 1 2 2 2 3 3 3 4 4 4[详细]
2023-04-12 11:51 分类:问答joining coordinates
I have two sets of coordinates lat1 is 144.9216 lat2 is 151.0393 long1 is -37.7784 long2 is -33.8131 These are the coordinates for Melbourne and Sydney. I want these two sets of points to be connec[详细]
2023-04-12 11:07 分类:问答Matlab clustering and data formats
Leading on from a previous question FCM Clustering numeric data and csv/excel file Im now trying to figure out how to take the outputed information and create a workable .dat file for use with cluster[详细]
2023-04-12 10:30 分类:问答