已回答
How to solve the following equations for vc(t)?
Try the following syms t; T=((vc-Vin)/Rc)*Tsw/2*1/(1.5*Il-0.5*Ipo); vc=(291*cos((6339586188837495*t)/137438953472)*exp(-...

6 years 前 | 1

| 已接受

已回答
Failure in initial objective function evaluation. FSOLVE cannot continue
I guess the mistake you are making is in using Tee = x(1); Cee = x(2); Rather it should be Tee = x0(1); Cee = x0(2)...

6 years 前 | 0

已回答
Y(n)=5x(n-5)-3x(n 4)
I guess this is probably what you are looking for syms x n x(n)={1,2,3,4,5,6,7,6,5,4,3,2,1} x1(n)=5*x(n-5)-3*x(n+4) x...

6 years 前 | 0

已回答
MATLAB program to find the roots of an equation
Instead of using fsolve try using vpasolve syms x c=0.2:0.1:2; y=cos(x)-c*x; for i=1:numel(y) sol(i)=vpasolve(y(i),...

6 years 前 | 1

| 已接受

已回答
How do you use the plot3 function with an interval?
You could try to run the following code t=1:0.1:30; x = 3*cos(t)+5*cos(t).^2; y = 3*sin(t)+ 5/2*sin(2*t); z = 2*t....

6 years 前 | 0

已回答
How can I replace an expression in a symbolic function with a new symbolic variable?
I assume that this should be what you are looking for function result= C(A,B) result=A*B; end But use this before...

6 years 前 | 0

已回答
Replacing the zero entry of a vector with its nonzero entries
* For your first part for(i=1:length(A)-1) if(A(i)~=0 && A(i+1)==0) A(i+1)=A(i); end end However I w...

7 years 前 | 0

已回答
Calculation in inter dependency matrix
You could use a 3D matrix to store the new values of A1, D1, P and Utility result=zeros(221,4,1000); for (i=1:1000) A1...

7 years 前 | 0

| 已接受

已回答
Hi i have following code which shows some error how i solve it plzz help
There are some errors that I could find * The slope is change in Y by change in X M = -(X./Y) * You cannot have index ...

7 years 前 | 0

已回答
while loop error with conditional statment
OR you could just modify your WHILE loop condition as : while (x_int(i) <= c && i<length(x_int))

7 years 前 | 0

已回答
Function to find the next prime number...
*Method 1* This functionality does not run in MATLAB and can be used only via MuPAD Notebook Interface. * *To create* an MuP...

7 years 前 | 2

| 已接受