Feeds
질문
Same code poor performance on different server with same RAM and processors
Why same matlab code shows different performance on different server with same RAM and processors? Below are the server confi...
대략 8년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Delete the column with all 0 in the TABLE
In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...
거의 9년 전
문제를 풀었습니다
Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2
거의 9년 전
문제를 풀었습니다
Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...
거의 9년 전
문제를 풀었습니다
Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.
거의 9년 전
문제를 풀었습니다
Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...
거의 9년 전
문제를 풀었습니다
Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...
거의 9년 전
문제를 풀었습니다
Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...
거의 9년 전
문제를 풀었습니다
05 - Vector Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...
거의 9년 전
문제를 풀었습니다
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
거의 9년 전
문제를 풀었습니다
Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...
거의 9년 전
문제를 풀었습니다
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
거의 9년 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
거의 9년 전
문제를 풀었습니다
Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .
거의 9년 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
거의 9년 전
문제를 풀었습니다
Weighted average
Compute the weighted average Y, of the vector A, given the weight vector W. The weighted average is the sum of the dot produc...
거의 9년 전
