No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am new to using matlab I am trying make a network which has 20 inputs and one output, when i run the code it says : "Error using ==> network/sim Inputs are incorrectly sized for network. Matrix must have 39 rows. " and points to the line NNA=sim(NN,I) Below … | |
I am trying to a do a breadth first search in prolog: [CODE]breadthfirst([Path | Paths], Finish, Solution) :- extend(Path, NewPaths), sortPath(NewPaths, Results), append(Paths, Results, Paths1), breadthfirst(Paths1, Finish, Solution).[/CODE] My problem is I do not know how to write the sortPath(NewPaths, Results) part. It should sort the path in order by … | |
I am trying to a do a breadth first search in prolog: [CODE]breadthfirst([Path | Paths], Finish, Solution) :- extend(Path, NewPaths), sortPath(NewPaths, Results), append(Paths, Results, Paths1), breadthfirst(Paths1, Finish, Solution).[/CODE] My problem is I do not know how to write the sortPath(NewPaths, Results) part. It should sort the path in order by … |