Feeds
提问
Error using axesm. It says "checkellipsoid' for input arguments of type 'double'"
Hi! I am getting the following error while using axesm >> axesm Undefined function 'checkellipsoid' for input argumen...
6 years 前 | 0 个回答 | 0
0
个回答已回答
Why is the factorial of 0 equal to 1?
A Factorial of a number n can defined as the total number of ways of selecting n different objects. For Example, total number ...
Why is the factorial of 0 equal to 1?
A Factorial of a number n can defined as the total number of ways of selecting n different objects. For Example, total number ...
8 years 前 | 0
已回答
How to generate same set of random numbers?
You can control random number generation using 'rng()' function. The usage is rng(seed). _rng(seed) seeds the random number g...
How to generate same set of random numbers?
You can control random number generation using 'rng()' function. The usage is rng(seed). _rng(seed) seeds the random number g...
8 years 前 | 1
| 已接受
已回答
Is 1900 a leap year?
No, 1900 is not a leap year. Condition for an year to be Leap year us that it should be divisible by 4. But if it is century lik...
Is 1900 a leap year?
No, 1900 is not a leap year. Condition for an year to be Leap year us that it should be divisible by 4. But if it is century lik...
8 years 前 | 2
| 已接受
已回答
Static variables in MATLAB
Use keyword persistent to declare static variables persistent x; for more information: read here: <https://in.mathworks....
Static variables in MATLAB
Use keyword persistent to declare static variables persistent x; for more information: read here: <https://in.mathworks....
8 years 前 | 6
| 已接受
已回答
Convert a string of numbers to a number.
You can use the following code. a=[1 2 3]; b=length(a); c=(b-1):-1:0 d=10.^c; y=a.*d; It converts an array c...
Convert a string of numbers to a number.
You can use the following code. a=[1 2 3]; b=length(a); c=(b-1):-1:0 d=10.^c; y=a.*d; It converts an array c...
8 years 前 | 5
| 已接受
已回答
Error calculation and using for loop
You can use the following code: cosx=1; x=1.18; for i=1:4 cosx=cosx+(-1)^i.*x^(2*i)/factorial(2*i) end It ...
Error calculation and using for loop
You can use the following code: cosx=1; x=1.18; for i=1:4 cosx=cosx+(-1)^i.*x^(2*i)/factorial(2*i) end It ...
8 years 前 | 4
已回答
Write a single line code to sum all the odd numbers of an array.
You can use this code: y = sum(x(rem(x,2)==1));
Write a single line code to sum all the odd numbers of an array.
You can use this code: y = sum(x(rem(x,2)==1));
8 years 前 | 9
| 已接受
已回答
how to draw a line with two points x and y at a given angle???
That is pretty simple. x=[x1 x2]; y=[y1 y2]; plot(x,y)
how to draw a line with two points x and y at a given angle???
That is pretty simple. x=[x1 x2]; y=[y1 y2]; plot(x,y)
8 years 前 | 4
已回答
how to calculate taylor series expansion of sin(k*(x-x1)-4k^3*t) in matlab?
You can use in-built MATLAB function, taylor(f,var) to generate Taylor series. For your case, the code will look like ...
how to calculate taylor series expansion of sin(k*(x-x1)-4k^3*t) in matlab?
You can use in-built MATLAB function, taylor(f,var) to generate Taylor series. For your case, the code will look like ...
8 years 前 | 5
| 已接受