Community Profile

# Zhuoying Lin

Last seen: circa 2 anni ago Active since 2017

#### 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([...

oltre 4 anni ago | 1 answer | 0

### 1

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

oltre 4 anni ago | 1 answer | 0

### 1

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

oltre 4 anni ago | 0 answers | 0

### 0

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

oltre 4 anni ago | 1 answer | 0

### 1

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

oltre 4 anni ago | 1 answer | 0

### 1

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

oltre 4 anni ago | 2 answers | 0

### 2

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

oltre 4 anni ago | 2 answers | 0

### 2

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

oltre 4 anni ago | 2 answers | 0