MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > help on vectorizing this 

Subject: help on vectorizing this From: Marios Karaoulis Date: 14 Oct, 2010 16:49:01 Message: 1 of 21 
Hello, 
Subject: help on vectorizing this From: Marios Karaoulis Date: 14 Oct, 2010 17:29:57 Message: 2 of 21 
What I am thinking is like this 
Subject: help on vectorizing this From: Marios Karaoulis Date: 14 Oct, 2010 18:41:04 Message: 3 of 21 
Marios Karaoulis <marios.karaoulis@gmail.com> wrote in message <d6bed29a31cb400ba836aed0e490610d@c13g2000vbr.googlegroups.com>... 
Marios Karaoulis <marios.karaoulis@gmail.com> wrote in message <73f258898b764aa7abfea6bb1923b88e@t11g2000vbc.googlegroups.com>... 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 15:31:15 Message: 5 of 21 
Thanks (again!) for your reply. After some thinking this is what I did 
Marios Karaoulis <marios.karaoulis@gmail.com> wrote in message <05517269cbbf46db912b73ec53b4c08b@37g2000prx.googlegroups.com>... 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 17:43:03 Message: 7 of 21 
This versions works only if M==K, otherwise it says 
"Marios Karaoulis" <marios_hellas_23@yahoo.gr> wrote in message <i9a3r7$jfk$1@fred.mathworks.com>... 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 18:25:04 Message: 9 of 21 
> Oh! I thought k was just a sparse identity matrix not a boundary applied stiffness matrix. Are you sure 'f' is right? It seems to me that f2 should be right. If you inspect f,f2, f has values everywhere, where f2 is zeros on the rows of k that had been zeroed out. 


Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 19:33:03 Message: 12 of 21 
> I don't think this is doing what you want. When i =1, that node_ebc position in f, is not overwritten; however, all of the others are. What you would want I think is: 
"Marios Karaoulis" <marios_hellas_23@yahoo.gr> wrote in message <i9aa9f$s2s$1@fred.mathworks.com>... 
> Using this as your conditional statement: 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 20:34:03 Message: 15 of 21 
> %% First Attempt  
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 20:48:04 Message: 16 of 21 
> if all(node_ebc~=j) 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 21:05:04 Message: 17 of 21 
"Marios Karaoulis" <marios_hellas_23@yahoo.gr> wrote in message <i9aem4$hnp$1@fred.mathworks.com>... 
Subject: help on vectorizing this From: Marios Karaoulis Date: 15 Oct, 2010 21:30:07 Message: 18 of 21 
> 
Marios Karaoulis <marios.karaoulis@gmail.com> wrote in message <73f258898b764aa7abfea6bb1923b88e@t11g2000vbc.googlegroups.com>... 
Subject: help on vectorizing this From: Marios Karaoulis Date: 4 Nov, 2010 20:27:05 Message: 20 of 21 
Hi again, 
Subject: help on vectorizing this From: Marios Karaoulis Date: 4 Nov, 2010 21:19:03 Message: 21 of 21 
Or to be more accurate (forget the previous version) 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.