Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to multiple n matrices(2X2).How to do that.it should start from 1 till nrlayer like M(1)*M(2)M(3) till *M(nrlayer)
T=1;
for i=1:nrlayer,
T=T*M{i};
end
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I want to store x and y coordinates from another class. I want to store it in a field or Array list. The coordinates should be taken from a click on a frame.
I got no idea how to do it.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 months ago.
Improve this question
I am trying to simplify an expression which has an unknown varaible in it. I am doing it in scala and I am using case classes. The thing is I don't know how to handle an unknown variable e.g when 4 * 4 * x should become 16 * x but I don't know how to get the * x. Can anyone help
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How to write the MATLAB code
to create a signal consisting of a 'delay' of 1000 samples of zeros,
followed by variable which i found in previous part 'sss' of 1000 samples and the message I've created 'msg' ?
so there are three variables 'delay' , 'sss' , and 'msg'
please help. thanks
Concatenate them.
newSignal = [delay sss msg];
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Create another Range from 1 to 100. Use it to print out only the even numbers between 1 and 10. You'll need to use an if statement combined with your for loop to pull this off.
Consider this office hours. Try this:
for number in 1...100 {
if number%2 == 0 && number < 11 {
println(number)
}
}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to make a loop in order to add the current state with the previous state.
For example:
M=1000;
for i=1:M A=i*(x(i));
This formula will be for M=1 but when M=2 the formula will be like this:
A=(i*(x(i))+((i-1)*(x(i-1)))
and when M=3 the formula will be
A=(i*(x(i))+((i-1)*(x(i-1)))+((i-2)*(x(i-2))
and so on till reach the maximum length of M which is 1000.
Your question is quite vague but it sounds like you just want a cumulative sum of the i*x(i) series:
i = 1:M;
s = i.*x(i);
cumsum(s);