Feeds
提问
Find the average point with the four points surround it, using For-loop and function
Hi guys, I had trouble on getting the average point with the four points surround it. Matlab said there is a error on a(i,n...
9 years 前 | 1 个回答 | 0
1
个回答提问
Pick a phrase to print depending on the time of day.
I have a cell array which is the code below. greetcell = {'Good morning', 'Good afternoon','Good evening'}; I need to pi...
11 years 前 | 1 个回答 | 0
1
个回答提问
generate random upper string in function
I tried to generate the same length of upper string as the input argument. For example, if I put wordscramble('abcd'), the ...
11 years 前 | 1 个回答 | 0
1
个回答提问
Convert the mxn size Matrix to square Matrix without using loop or if
Hi, I have a random mxn matrix, like 4x6 and I want it to be square. For example, a original 4x6 matrix would be created by ...
11 years 前 | 2 个回答 | 0
2
个回答提问
got stunned and cannot display on commond during using while-loop
exp(x)= lim n to inf (1+x/n)^n write a function to accept x and calculate on the right-hand side for n = 1, 2, 3, … until th...
11 years 前 | 1 个回答 | 0
1
个回答提问
Product of each row with for-loop
Hi, I got a 6by6 matrix and I have to calculate the product in each row like in v = [1 2 3; 4 5 6], the product of row 1 shoul...
11 years 前 | 1 个回答 | 0
1
个回答提问
find the minimum value in each row without using min
I can't use function min And here is my code x = rand([4,3]) for i = 4; row = 0; for j = 1:3 i...
11 years 前 | 1 个回答 | 0
1
个回答提问
store the data in dat file with loop function
the question is : there a machine for n piece of pipe. Each pipe should measure weight and length and save as pipe.dat file. wei...
11 years 前 | 1 个回答 | 0
1
个回答提问
write a script to write another new .dat
I have to write a script which can write the data to a new .dat file. I already have a vector = [2000 3000 4000 7000 11000; 300...
11 years 前 | 0 个回答 | 0
0
个回答提问
display Empty matrix: 1-by-0
here is the question : function can return a vector as a result. Write a function vecout that will receive one integer argu...
11 years 前 | 1 个回答 | 0
1
个回答提问
adjust percentage of red green blue in RGB
hi, I need to change the percentage color for a picture between red green blue. For example, when I put a number, like 50% o...
11 years 前 | 1 个回答 | 0
