What is the difference between quadruple multiplexer and and the regular multiplexer? - cpu-architecture

I know that a multiplexer takes input values, selection lines and produce one output.
My question here, what a quadruple 2x1 multiplexer is? and how does it differ from the regular multiplexers?

Related

How to handle negative input data in deep belief networks

In my data, I have a column with negative and positive values. Here negative value means how much some things are missing and positive values means unexpected additional things and 0 means neutral which is always expected value. So how can I use this column of data as input for deep belief networks. Can I input negative numbers as input in deep belief networks?
I think you can consider two things. Firstly, there should not be an underlying problem inputting negative values - is there are specific reason you question this?
More importantly if you want, you can pre-process your dataset, or do it during input. There are many activation functions you can use that result in absolute values, like something as simple as the sigmoid function. There is nothing wrong with activating input values, in fact its recommended.

Matlab Variable Precision

I am writing a Matlab script that solves a system of differential equations via the Runge-Kutta method. Due to the iterative nature of this approach, errors accumulate very quickly. Hence I'm interested in carrying an extremely exaggerated number of decimal points, say, 100.
I have identified the digits function, which allows me to define the variable precision accuracy. However, it seems that I have to specify the vpa function in every equation where I want this precision used. Is there a way to put a command in the script header and have the specified number of decimal places used in all calculations? Matlab help is unusually unclear about this.
There is no way to tell matlab to use vpa everywhere. Typically you don't specify it in every equiation, instead cast all inputs and constants to vpa.

Matlab symbolic solver giving different solution when I use subs to give values to consants and when I directly apply the numbers

My problem is the following (has to do with movement of vehicles) : I use dsolve in Matlab to solve a differential equation about the jerk (which is the derivative of the acceleration) and then I integrate the solution three times to get the acceleration, the speed and the position. I add the necessary integral constants in every integration.
Then in order to calculate all the constants (6 in total), I use solve and 6 equations which have to do with the initial position, speed, acceleration and jerk etc. So now I have a symbolic expression for each constant.
In order to give numeric values to these constants, I use two ways. One is to use double(vpa(subs(symb_expression,{ A B C}, {no1,no2,no3}))) which works fine but is really slow. In order to make it faster I thought of taking the symbolic expression and make it a "normal" calculation using a function.[ For example if the symbolic expression is C1=a+b*exp(v1/v2), I just copy and paste this in a function which takes as inputs a,b,v1 and v2 and returns C1. ] My expressions are however very long ones.
The problem is that with the first method I get exactly what I want whereas with the second it gets crazy when it approaches the end of the simulation. (In the first part i.e for times < 14 they are exactly the same although it cannot be seen because the final values in the bug case are very big and force the graph to be scaled differently). The problem can be seen in the upper left and bottom right graphs (consider the other ones irrelevant).
I thought it has to do with the precision and tried increasing the digits value but it did not solve the problem.
Any ideas would be more than welcome!

Combination of two signals to determine the end signal sent through Simulink code

Goal
I'm trying to have a second signal (caused by force applied to a sensor's surface area), once it reaches a set minimum, to determine a servo motor's position. The motor's position is otherwise determined by a first signal (generated by EMGs that are measured with electrodes placed on a subject's body) that make give the servo preset positions when the signal crosses a certain threshold.
Schematic
I cannot seem to get the two signals to work together. Any corrections and recommendations on how to make the logic within Simulink function as intended would be immensely appreciated. I know little of the program and cannot find a good approach.
In your diagram you go from numeric values (Sensors) to logical ones (>=301) back to numeric (*90) and again to logical (AND). What you are doing may be possible but hides the intention. First of all I would recommend you to clearly distinguish between logical conditions and values, similar to the following model. To help you with that you can turn on data-type display from Format > Port/signal display > Signal data types followed by an Update (Ctrl-D).
Alternatively you could reduce the conditions as much as possible and operate only with values, such as
However I do not fully understand your requirements and I'm also not sure what the input of the servo is representing (Speed, position, ...)? Maybe you could explain the desired behaviour a bit more detailed? In particular how do you come up with the limits (301, 300, ...).

Unexpected Behavior of MATLAB Builder

I've a MATLAB function which computes a histogram difference between two color histograms. I've converted it into a corresponding JAR file using MATLAB Builder.
Now, when I try to retrieve the value, it's giving some unexpected results.
The same code when executed in MATLAB for the same arguments is giving a different answer than that given when using Java.
The difference between both answers is quite large, so, it cannot be neglected.
Code is at:
https://gist.github.com/835910
Can any one tell me the reason why this is happening?
The only thing that immediately jumps out at me is that you're returning a matrix. And in Java, matrices are stored row-major but in Matlab they are stored column major.
So: is the data your sending to Matlab column major compatible? And are you interpreting the answer (hist) as column major?
This is a bit of a shot in the dark...