Quantcast
Channel: MATLAB Central Newsreader - tag:"loop"
Browsing latest articles
Browse All 45 View Live

Creating a string of underscores

I was wondering how to convert every character from a user provided string to underscores without using a loop. I know how to do it using a loop, but can't figure this one out. I'm thinking it has...

View Article



Re: Creating a string of underscores

"Michael Doherty" wrote in message <nu2ns4$3p$1@newscl01ah.mathworks.com>...> I was wondering how to convert every character from a user provided string to underscores without using a loop. I...

View Article

Re: Creating a string of underscores

"Michael Doherty" <mkdnk6019n@yahoo.com> wrote in message news:nu2ns4$3p$1@newscl01ah.mathworks.com...> I was wondering how to convert every character from a user provided string > to...

View Article

Re: subtract vector from matrix rows without for loop

"Patrick Diviacco" wrote in message <hesm3s$3sn$1@fred.mathworks.com>...> hi,> > can I subtract the same vector to each row of a matrix without using a for loop ?> thanks It was my...

View Article

Re: subtract vector from matrix rows without for loop

"Muhammed Alavi" wrote in message <o26bbj$fss$1@newscl01ah.mathworks.com>...> "Patrick Diviacco" wrote in message <hesm3s$3sn$1@fred.mathworks.com>...> > hi,> > > > can...

View Article


Re: subtract vector from matrix rows without for loop

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message news:o26eb8$m1d$1@newscl01ah.mathworks.com...> "Muhammed Alavi" wrote in message >...

View Article

While Loop runs slow!

I created a simple code for Euler's Method and it worked well initially, but when I throw in more complex functions it takes so long I don't even get a solution. Here's my code: clear; clc; syms f(x,y)...

View Article

Re: While Loop runs slow!

On Wed, 01 Feb 2017 20:22:04 +0000, Joseph Welch wrote:> count=0;> x2=input('What is your x final? ');> h=input('How many steps do you want to take, h= ');> > while count~=x2>...

View Article


Re: While Loop runs slow!

bbowler <bbowler@bigelow.org> wrote in message <efevkgFqoujU1@mid.individual.net>...> On Wed, 01 Feb 2017 20:22:04 +0000, Joseph Welch wrote:> > > > count=0;> >...

View Article


Re: While Loop runs slow!

"Joseph Welch" <welch.joseph.jr@gmail.com> wrote in message <o6tg1b$oga$1@newscl01ah.mathworks.com>...> I created a simple code for Euler's Method and it worked well initially, but when...

View Article

PCA on specified dimension of 4d array

I have a 4D array containing biomechanics data that I want to do PCA on. The array is in the form: Data(time, angle, task#, subject#) where size(Data) = (100, 3, 26, 10). (effectively a 26x10 matrix of...

View Article

If,elseif,else restart

This is what i am working with so far. casenum=input('Type 1 for X-axis centroid or type 2 for Y-axis centroid of a Nth Degree Parabola.') if casenum==1    b=input('Please enter the length of the...

View Article

Multiplying the elements of a matrix by different values

Hello, I have two matrices, a 3724x3724 and a 3724x4, of which I need to adjust the elements according to a percentage decrease or increase. The first matrix consist of 266 different regions (j), which...

View Article


Re: subtract vector from matrix rows without for loop

"Yuval Carmel" wrote in message <mt3753$bnj$1@newscl01ah.mathworks.com>...> "Patrick Diviacco" wrote in message <hesm3s$3sn$1@fred.mathworks.com>...> > hi,> > > > can I...

View Article

Re: subtract vector from matrix rows without for loop

"Hazem" wrote in message news:ohqktr$7f5$1@newscl01ah.mathworks.com... "Yuval Carmel" wrote in message <mt3753$bnj$1@newscl01ah.mathworks.com>...> "Patrick Diviacco" wrote in message...

View Article

Browsing latest articles
Browse All 45 View Live




Latest Images