Community Profile Abhishek Jain

NSIT

Last seen: 4 months ago Active since 2016

Statistics

All
• • • • • • • • • • • • Content Feed

View by

Question

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

3 years ago | 0 answers | 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 ...

5 years ago | 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...

5 years ago | 1

| accepted

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

5 years ago | 2

| accepted

Static variables in MATLAB

5 years ago | 6

| accepted

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

5 years ago | 5

| accepted

Successive difference in an array
Use command diff example: y=diff(x)

5 years ago | 4

| accepted

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

5 years ago | 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));

5 years ago | 9

| accepted