Community Profile

photo

Wenchen Liu


Last seen: 1 year ago Active since 2021

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


How can i fix this code with ploting a function
I want to plot this function, that is, N(10-N)=16e^0.25t with interval [0,10] and i tried: fplot(@(x) 16*exp.^0.25*x,[0 ...

1 year ago | 1 answer | 0

1

answer

Question


How can I fix this error?
I had a code like this: clear all, close all f = @(x)(4/(1+x^2)); a = 0; b = 1; F = @(x)(-8x/((1+x^2)^2)); % antiderivati...

1 year ago | 1 answer | 0

1

answer

Question


How can I a function on the interval
I got a equation: x+ln x = 0, and I want to plot it on the interval [0.1, 1] I have tried this code: f = @(x)x+log(x) fplot(f...

1 year ago | 1 answer | 0

1

answer

Question


How can i find the error in the interpolant
This is what have done so far: and the graph of this code shows like this: I want to find the error between this two ...

1 year ago | 1 answer | 0

1

answer

Question


How can I plot two functions in the same graph?
I have a code like this: fplot(@(x) cosh(x)) hold on p(x) = 0.6671x^3-1.7921x^2+2.7580x-0.089 fplot(@(x) p(x)) hold off ...

1 year ago | 2 answers | 0

2

answers

Question


sums up the same rounded numbers in 5-digit decimal arithmetic in n = 10, 9, 8, ..., 3, 2, 1
How do I write a matlab code for this? since n is in a reversw order.

1 year ago | 1 answer | 0

1

answer

Question


How could I sums up 1/n for n=1 to 10000?
I have a code like this, but I can't run it. n = 10000; % whatever you want sum_harm = 0; for i = 1:n sum_harm = sum_har...

1 year ago | 2 answers | 0

2

answers

Question


how can I fix the code for Segregation Model and population?
I have a code like this: % model function schell(grid_size,percent_empty,percent_p1,percent_p2) grid_size = 50; percent_empty...

2 years ago | 1 answer | 0

1

answer

Question


how to set up two different populations in a segregation model code?
I have a general code for the segregation model like the following: %% n = grid_size; grid_size = 50; n = grid_size; n2 = n^...

2 years ago | 1 answer | 0

1

answer

Question


please find the formula for Newton's Method applied to finding roots of z^3 - 1, and apply it to the complex matrix 20 times.
I was stuck with how to use Newton's Method to find the roots. How would the coding be? Please help me with the code.

2 years ago | 0 answers | 0

0

answers

Question


how can I create a complex matrix representing a grid of points with corners at -1 - i and 1 + i.
I want to know how to create a complex matrix representing a grid of points with corners at -1 - i and 1 + i. I was confused by ...

2 years ago | 1 answer | 0

1

answer

Question


How to plot differential equations?
I have a few differential equations with given values , and I want to plot these equation. What should I do to plot? Because I h...

2 years ago | 0 answers | 0

0

answers

Question


how do you define a matrix and its variable
I want to create a matrix , by i * j, in matlab, and then let matlab run this. I need to tell matlab what is i and what is j bef...

2 years ago | 1 answer | 0

1

answer

Question


Determine the associated system of differential equations.
i don't know how to start this question.

2 years ago | 0 answers | 0

0

answers