문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

1년 초과 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

1년 초과 전

문제를 풀었습니다


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

1년 초과 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

1년 초과 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

1년 초과 전

문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

1년 초과 전

답변 있음
how to use loop for sum without using cumsum?
You can do this: %sample data x = [1, 2, 3, 4]; n = length(x); s = zeros(n, 1); % Initialize s as a vector of zeros for...

1년 초과 전 | 0

| 수락됨

답변 있음
How to use spherical Hankel fumction to obtain sphere scatter
The error in your code arises from the fact that the variable nu is a symbolic variable defined using syms, while x is a numeric...

1년 초과 전 | 0

답변 있음
Finding the resultant of 3 perpendicular complex vectors
To calculate the magnitude of the resultant E field at each point in p, sum up the components and divide by magnitude at each po...

1년 초과 전 | 0

| 수락됨

답변 있음
How to sort a cell alphabetically?
You can use the function provided in this matlab file exchange resource: https://www.mathworks.com/matlabcentral/fileexchange/47...

1년 초과 전 | 0

답변 있음
Breaking the axis of plots
You can refer to this work from matlab file exchange forum: https://www.mathworks.com/matlabcentral/fileexchange/3683-breakxaxis...

1년 초과 전 | 0

답변 있음
Draw multi graphs in one figure
You can achieve the desired outcome using subplot function as below: t=0:0.000001:0.1; x=sin(100*t); y=cos(100*t); figure;...

1년 초과 전 | 0

답변 있음
Resnet50 layers in code format
This link below may help you: https://github.com/matlab-deep-learning/resnet-50

1년 초과 전 | 0

답변 있음
How do I use writetable to output a filename depending on my input?
Create filename before passing it to writetable using sprintf as below: filename = sprintf('Schedule for %s.xlsx', data); w...

1년 초과 전 | 1

| 수락됨

답변 있음
How to force jsonencode to return floating format
Use the sprintf function to format the value of DR to a string with one decimal place So change the required line to: apiData.D...

1년 초과 전 | 0

답변 있음
Resizing the image to 224*224 for resnet50
Ok so going by the tags associated with your question: Ensure images are present in the location folder. Modify the line str=[...

1년 초과 전 | 0

답변 있음
Applying a K-Fold cross validated model to predict the response variable for new data
You can use the predict function in MATLAB to predict responses using the cross-validated model KFoldMd and the new data predict...

1년 초과 전 | 0

| 수락됨