Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Odometer Step Problem
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian  
View profile  
 More options Oct 2 2008, 1:05 pm
Newsgroups: comp.soft-sys.matlab
From: "Ian " <z060...@ntu.edu.sg>
Date: Thu, 2 Oct 2008 17:05:04 +0000 (UTC)
Local: Thurs, Oct 2 2008 1:05 pm
Subject: Odometer Step Problem
I have the below function used to generate a matrix of values for an odometer step problem. Is there a way to get outputs from 1:MaxVals for the whole problem instead of just MaxVals?

function A = odoprob(array_info,MaxVals)
if length(array_info) > 1
    array_infot = array_info(1:end-1);
    A = [];
        for k = max(MaxVals-sum(array_infot),0):min(MaxVals,array_info(end))
            B = odoprob(array_infot,MaxVals-k);
            A = [A;B,repmat(k,size(B,1),1)];
        end
else
    A = MaxVals;
end


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google