Community Profile

photo

david Chan


Active since 2014

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


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...

8 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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 ...

9 years ago | 1 answer | 0

1

answer

Question


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 ...

9 years ago | 2 answers | 0

2

answers

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 0 answers | 0

0

answers

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer