Community Profile

photo

Zhuoying Lin


Last seen: mehr als 3 Jahre vor Aktiv seit 2017

Followers: 0   Following: 0

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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!

mehr als 6 Jahre vor | 3 Antworten | 1

3

Antworten