Community Profile

photo

Zhuoying Lin


Last seen: 1 year ago Active since 2017

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


How do I swap the elements in two arrays?
Hi, I have these two arrays: a={'sin', {0, '2*pi', 'pi/100'}, logical([0 1 1 0])}; b={'cos',{'-pi','pi','pi/15'},logical([...

4 years ago | 1 answer | 0

1

answer

Question


How to create a subcell?
Hi, I have trouble creating a subcell within a cell array, can someone help me? I am supposed to type: [sin] [[0][2pi][pi...

4 years ago | 1 answer | 0

1

answer

Question


Approximation not falls within the expected range
Here's my script: n=1; while abs(pi-sum(4./((2*(1:n)-1).*(-1).^((1:n)+1))))>0.001 n=n+1; end fprintf('Th...

4 years ago | 0 answers | 0

0

answers

Question


No result for while loop Statement
Matlab remains busy running my script forever, what's wrong with my script? n=1; while abs(pi-sum(4./((2*(1:n)-1)*(-1).^(n+...

4 years ago | 1 answer | 0

1

answer

Question


Error Undefined x!
In my script, I call a function _value_ to input values and put the input in another function _integrnfn_: [A,x1,x2]=value;...

4 years ago | 1 answer | 0

1

answer

Question


How to write a script for the following?
1 x 8 + 1 = 9 12 x 8 + 2 = 98 123 x 8 + 3 = 987 1234 x 8 + 4 = 9876 12345 x 8 + 5 = 98765 123456 x 8 + 6 = 9876...

4 years ago | 2 answers | 0

2

answers

Question


How do I verify a statement and display the resulting matrix that consists of logical 1 or 0?
Hi, here is the question: Write the statement which verifies whether D is a symmetric matrix. Display the resulting matrix matl...

4 years ago | 2 answers | 0

2

answers

Question


Why when I put legend for 3 functions it only shows 1 on the graph?
Hi, below is my script: x=linspace(0,2*pi,100); y1=1-x.^2/factorial(2); y2=y1+x.^4/factorial(4); y3=co...

4 years ago | 2 answers | 0

2

answers

Question


type if x is a square matrix statement
Hi, How do I write the script for "If x is a square matrix funcz will be the 0"? Thanks!

4 years ago | 3 answers | 1

3

answers