Feeds
提问
What is the running time of the algorithm
I have this code: n = length(V); S = zeros(n,2*n); for i = 1:n for j = 2:i for k = 1:n S(i,j+k...
6 years 前 | 1 个回答 | 0
1
个回答提问
How do I test a vector element by element for imaginary elements
Here is the the vector i Have r = -1.6659 + 0.0000i -0.3049 + 1.1564i -0.3049 - 1.1564i 1.1378 + 0.3231i 1....
6 years 前 | 1 个回答 | 0
1
个回答提问
I am trying to write a matlab function that that takes a matrix as input and test if that matrix is a square(using a sub-function) and if it is a square it must test if it meets a certain condition. Here is my code
function [a,b] = matr(A) [a,b]=size(A) d=diag(A) S=sum(d==0) Results = tests(a,b) if S>0.5*length(d) RT1=1 disp(...
6 years 前 | 0 个回答 | 0
