Community Profile # Siyu Guo

Active since 2018

#### Statistics

• • #### Content Feed

View by

My 'For' sequence is giving me "Array indices must be positive integers or logical values."
Array index in MATLAB starts from 1 instead of 0.

5 years ago | 0

| accepted

use diff for jacobian but there is a problem
I think MATLAB does not recognize the function "cosd" in its symbolic computations. You should instead use "cos", which means yo...

5 years ago | 1

What is wrong with my code?
You try to read the variable "pi_val" before you have initialized it by a write operation. This is an error, at least for MATLAB...

5 years ago | 0

How to determine the most common (most occurring) number in column of a large data of more than 100,000 length of data
Suppose v is your data vector. u = unique(v); h = hist(v,u); [~,i] = max(h); value_with_most_occurrences = u(i);

5 years ago | 0

How to position groups of matrices inside a bigger matrix
blkdiag function is the tool you are looking for. Help it in MATLAB. Note you can use a loop within which the function is called...

5 years ago | 0

| accepted

How to add a selection of elements from one matrix to a selection of elements of another matrix?
The sub-matrix in Y_dif is 56-by-3 and the destination sub-matrix in Y is 56-by-5. The sizes do not match, and the addition cann...

5 years ago | 0

| accepted

How to categorise a column vector
Try the "unique" function. Help it in MATLAB.

5 years ago | 0

How to fit a quadratic function using the "minimizing the volume-weighted mean squared error"?
u = sqrt(w(:)); b1 = u; b2 = u.*x(:); b3 = u.*x(:).^2; f = u.*y(:); A = [dot(b1,b1) dot(b1,b2) dot(b1,b3); ...

5 years ago | 0

| accepted

How to do segmentation of the overlapped cells in an image and obtain their co-ordinate?
I can't see how you have done the watershed. It seems to me that an Euclidean distance transformation on the binary nuclei image...

5 years ago | 0

Finding the Maximum of 6 matrices
Guess max(cat(3,M1,M2,M3,M4,M5,M6), [], 3) should do.

5 years ago | 0

I need help with an error
Your function call is darts(17,19), which means the wedges parameter passed into the function is the scalar 17, represented in M...

5 years ago | 1

How to create a string that depends on user input variables?
Try poly2str function. For example, s = poly2str(p, 'x').

5 years ago | 0

How can I tell if the raw data that I have is an image?
GIF, JPEG, etc., are image FILE format. Image data may be compressed, and additional information is added into the file, e.g., B...

5 years ago | 0

How is it possible to get new matrix with some values of another matrix?
This is the very elementary array index operation. To retrieve the specified data, just use S(:, 200:25:700) If you'd like...

5 years ago | 1

| accepted

Question

What's the reason that I can't login Cody Coursework?
I have applied and activated a MathWorks account. Yet when I went to the Cody Coursework Login page and clicked the Sign In butt...

5 years ago | 0 answers | 0