Click here to Skip to main content
15,888,579 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Deadline reminder for Pallab_GT Pin
CPallini2-Apr-08 9:34
mveCPallini2-Apr-08 9:34 
GeneralRe: Deadline reminder for Pallab_GT Pin
Luc Pattyn2-Apr-08 15:45
sitebuilderLuc Pattyn2-Apr-08 15:45 
GeneralRe: Deadline reminder for Pallab_GT Pin
CPallini2-Apr-08 21:17
mveCPallini2-Apr-08 21:17 
GeneralRe: Deadline reminder for Pallab_GT Pin
soap brain12-Apr-08 0:13
soap brain12-Apr-08 0:13 
GeneralRe: Deadline reminder for Pallab_GT Pin
CPallini12-Apr-08 4:40
mveCPallini12-Apr-08 4:40 
GeneralRe: Deadline reminder for Pallab_GT Pin
soap brain12-Apr-08 4:43
soap brain12-Apr-08 4:43 
GeneralIndeed. Pin
CPallini12-Apr-08 5:43
mveCPallini12-Apr-08 5:43 
QuestionA Problem Occurs ,While I was COding in MATLAB,Take Look At this. Pin
weicell30-Mar-08 8:49
weicell30-Mar-08 8:49 
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
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
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? D'Oh! | :doh:
GeneralRe: A Problem Occurs ,While I was COding in MATLAB,Take Look At this. Pin
MarkB7772-Apr-08 14:58
MarkB7772-Apr-08 14:58 
RantHELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
weicell29-Mar-08 14:09
weicell29-Mar-08 14:09 
GeneralRe: HELP ME ABOUT MY Term PROject in MATLAB!!PLEASE PLEASE...s.o.s. Pin
weicell29-Mar-08 14:12
weicell29-Mar-08 14:12 
GeneralYou want us to do your mid-term exam for you?? Pin
cp987629-Mar-08 14:44
cp987629-Mar-08 14:44 
GeneralRe: You want us to do your mid-term exam for you?? Pin
weicell29-Mar-08 15:21
weicell29-Mar-08 15:21 
GeneralRe: You want us to do your mid-term exam for you?? PinPopular
pmarfleet29-Mar-08 21:41
pmarfleet29-Mar-08 21:41 
GeneralRe: You want us to do your mid-term exam for you?? Pin
weicell30-Mar-08 0:41
weicell30-Mar-08 0:41 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Tim Craig30-Mar-08 9:29
Tim Craig30-Mar-08 9:29 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Paul Conrad2-Aug-08 11:08
professionalPaul Conrad2-Aug-08 11:08 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Tim Craig2-Aug-08 20:30
Tim Craig2-Aug-08 20:30 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Paul Conrad2-Aug-08 20:36
professionalPaul Conrad2-Aug-08 20:36 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Dave Kreskowiak31-Mar-08 8:35
mveDave Kreskowiak31-Mar-08 8:35 
GeneralRe: You want us to do your mid-term exam for you?? Pin
El Corazon31-Mar-08 9:16
El Corazon31-Mar-08 9:16 
GeneralRe: You want us to do your mid-term exam for you?? Pin
Tim Craig31-Mar-08 15:38
Tim Craig31-Mar-08 15:38 
GeneralRe: You want us to do your mid-term exam for you?? Pin
David Crow28-Apr-08 6:30
David Crow28-Apr-08 6:30 
GeneralRe: You want us to do your mid-term exam for you?? Pin
weicell30-Mar-08 0:43
weicell30-Mar-08 0:43 
QuestionRe: You want us to do your mid-term exam for you?? Pin
CPallini30-Mar-08 1:37
mveCPallini30-Mar-08 1:37 

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.