Click here to Skip to main content
15,908,841 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionRe: You want us to do your mid-term exam for you?? Pin
CPallini30-Mar-08 1:37
mveCPallini30-Mar-08 1:37 
GeneralRe: You want us to do your mid-term exam for you?? Pin
weicell30-Mar-08 2:01
weicell30-Mar-08 2:01 
GeneralRe: You want us to do your mid-term exam for you?? Pin
pmarfleet30-Mar-08 7:05
pmarfleet30-Mar-08 7:05 
GeneralRe: You want us to do your mid-term exam for you?? Pin
DavidNohejl7-Apr-08 2:18
DavidNohejl7-Apr-08 2:18 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Paul Conrad2-Aug-08 11:06
professionalPaul Conrad2-Aug-08 11:06 
QuestionRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
weicell30-Mar-08 3:11
weicell30-Mar-08 3:11 
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
CPallini30-Mar-08 7:35
mveCPallini30-Mar-08 7:35 
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
weicell30-Mar-08 8:38
weicell30-Mar-08 8:38 
I ask That,The script That I wrote is true or not?
Is it editable?And Which changes can I make in the script?
And I wrote Another;
But there is a problem Take a look at this;
function [z,y,wmax,xmax]=Condition(A)
[m,n]=size(A); % Get the dimensions of A
w=ones(m,1); % Start with initial guess eigenvalues
imax=60;
tol=10^-10;
for i=1:imax
[kk,k]=max(abs(w)); % Returns the indices of the maximum w values in vector k
z=w/w(k); % Normalize w with respect to maxw=w(k)
w=A*z; % Calculate w again
wmax=w(k); % z(k)=1
r=norm(wmax*z-w); % Use Euclidean form (norm(w,p) = sum(abs(w).^p)^(1/p))
final=[i,wmax,r,z'];
if r<tol, break="">
end

B=inv(A);
% Get the dimensions of A
x=ones(m,1); % Start with initial guess eigenvalue
for i=1:imax
[kk,k]=max(abs(x)); % Returns the indices of the maximum w values in vector k
y=x/x(k); % Normalize w with respect to maxw=w(k)
x=B*y; % Calculate w again
xmax=x(k); % z(k)=1
r=norm(xmax*y-x); % Use Euclidean form (norm(w,p) = sum(abs(w).^p)^(1/p))
final=[i,xmax,r,y'];
if r<tol, break<br="" mode="hold"> end
end
end
xmin=1/xmax
wmax
condition=wmax*xmax

And An erro occurs;

Error in ==> Condition at 2
[m,n]=size(A); % Get the dimensions of A
How can I correct it?
>>
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
David Crow28-Apr-08 6:43
David Crow28-Apr-08 6:43 
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
David Crow28-Apr-08 6:40
David Crow28-Apr-08 6:40 
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
Paul Conrad2-Aug-08 11:05
professionalPaul Conrad2-Aug-08 11:05 
GeneralProcess time of the Skipjack and RC5 Pin
Cryptogrpahy26-Mar-08 22:37
Cryptogrpahy26-Mar-08 22:37 
GeneralRe: Process time of the Skipjack and RC5 Pin
Paul Conrad27-Mar-08 6:26
professionalPaul Conrad27-Mar-08 6:26 
GeneralRe: Process time of the Skipjack and RC5 Pin
Cryptogrpahy27-Mar-08 6:47
Cryptogrpahy27-Mar-08 6:47 
GeneralCombination Generation Problem Pin
s0ren20-Mar-08 20:10
s0ren20-Mar-08 20:10 
GeneralRe: Combination Generation Problem Pin
Luc Pattyn21-Mar-08 1:40
sitebuilderLuc Pattyn21-Mar-08 1:40 
GeneralRe: Combination Generation Problem Pin
CPallini21-Mar-08 11:17
mveCPallini21-Mar-08 11:17 
JokeRe: Combination Generation Problem Pin
David Crow25-Mar-08 10:07
David Crow25-Mar-08 10:07 
GeneralRe: Combination Generation Problem Pin
CPallini25-Mar-08 21:57
mveCPallini25-Mar-08 21:57 
GeneralRe: Combination Generation Problem Pin
CPallini26-Mar-08 0:18
mveCPallini26-Mar-08 0:18 
GeneralRe: Combination Generation Problem Pin
cp987621-Mar-08 13:30
cp987621-Mar-08 13:30 
GeneralRe: Combination Generation Problem Pin
Luc Pattyn21-Mar-08 13:50
sitebuilderLuc Pattyn21-Mar-08 13:50 
GeneralRe: Combination Generation Problem Pin
cp987621-Mar-08 14:01
cp987621-Mar-08 14:01 
GeneralRe: Combination Generation Problem Pin
Luc Pattyn21-Mar-08 14:27
sitebuilderLuc Pattyn21-Mar-08 14:27 
GeneralRe: Combination Generation Problem Pin
cp987621-Mar-08 17:58
cp987621-Mar-08 17:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.