Community Profile

photo

Asemahle Ndamase


Aktiv seit 2019

Followers: 0   Following: 0

Statistiken

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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...

etwa 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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....

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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(...

etwa 5 Jahre vor | 0 Antworten | 0

0

Antworten