Feeds
提问
For loop problem.
I am trying to loop my calculations with a long data, but I do something wrong. size(a)=15 186 for i=1:size(a,1) bcn(i...
8 years 前 | 1 个回答 | 0
1
个回答已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
8 years 前
提问
how to refine data?
Let's say I have a data matrix as: a=[1,1,1,1,1;1,0,1,1,0;0,0,0,1,1;1,0,1,0,1]; Now, what I want is to get rid of th...
8 years 前 | 1 个回答 | 0
1
个回答已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
8 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
8 years 前
提问
How to make for loop to make various mathematical operations. Using matrices.
clear all clc magic=magic(5); t = zeros(size(magic,1),1); pi = zeros(size(magic,1),size(magic,2)); for i=1:size...
8 years 前 | 3 个回答 | 0
3
个回答提问
How to create a for loop to do sums of every values in the whole row?
I have a matrix lets say a=[1,2,3;9,8,7;4,5,6] I want to create a loop that will sum each row, like: sum(a(1,:)); The p...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to design a bandpass filter
I need to design a bandpass filter with sampling rate of 1kHz and bandpass from 1 to 200 Hz and then insert a signal my signal i...
9 years 前 | 2 个回答 | 0