**Statistics**

**MATLAB Answers**

**20** Questions

**0** Answers

RANK**9,568**

of 264,937

REPUTATION**4**

CONTRIBUTIONS

**20** Questions

**0** Answers

ANSWER ACCEPTANCE **
65.0%
**

VOTES RECEIVED**3**

RANK

of 18,099

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 115,958

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Converting an m-code into a png

Is it possible to convert an m-code into a png -- a picture of the code? Thanks.

10 years ago | 2 answers | 0

### 2

answersQuestion

(Probably elementary) Plotting problem

I have some problem with plotting. Basically I have a vector a=1:0.2:10 for n=1:1:length(a) while ... %a bunch...

10 years ago | 0 answers | 0

### 0

answersQuestion

Time steps in integration

I am confused. I think that ode45 uses a variable time step determined by the tolerance settings. But programs using ode45 tend ...

10 years ago | 0 answers | 0

### 0

answersQuestion

Drawing a circle with pdecirc

Why is it that when I give the command pdecirc(.5,1,.0001) I get the error message ??? Undefined function or method ...

10 years ago | 0 answers | 0

### 0

answersQuestion

AbsTol, RelTol

In my understanding, RelTol = abs(X-Y)/min(abs(X), abs(Y)) AbsTol = abs(X-Y) But what does it mean when applied ...

10 years ago | 2 answers | 2

### 2

answersQuestion

Electric field and a misbehaving particle

What I wish to do is to model the trajectory of a point particle of small negative charge in the field of a point charge of lar...

10 years ago | 1 answer | 0

### 1

answerQuestion

Symbols vs Floating points

This question has to do with the question in this link which Jan has kindly shed some light on. http://www.mathworks.co.uk/ma...

10 years ago | 1 answer | 0

### 1

answerQuestion

Error using odearguments???

What does this error message mean? ??? Error using ==> odearguments at 120 Inputs must be floats, namely single or doubl...

10 years ago | 2 answers | 0

### 2

answersQuestion

??? Undefined function or variable 'x'

I am trying to use ode45 to solve a system of ODEs. What I did was: function Testfunction tspan = [...] %specify ini...

10 years ago | 1 answer | 0

### 1

answerQuestion

Calling functions

I have written a MATLAB code say myfun.m which first line is function y = myfun(x) Now I want to call it in another c...

10 years ago | 2 answers | 0

### 2

answersQuestion

Machine epsilon

What does it mean for MATLAB to have a machine epsilon 2.2204e-16? Does that mean we can only be sure of a number up to the 15th...

10 years ago | 2 answers | 1

### 2

answersQuestion

The way MATLAB executes a code

Just wondering... suppose I have a code like a = 1+2+3; b = 1+3+5; c = a+b; fprintf('%2d',c) What is MATLAB actually d...

10 years ago | 1 answer | 0

### 1

answerQuestion

Differentiation

Is it possible to construct a code that for example we type in x^2 and then the program finds (d/dx)x^2=0 and gives x=0? I ha...

10 years ago | 3 answers | 0

### 3

answersQuestion

Rounding off

1) Suppose I have two numbers, say 0.01234567 and 0.01234599 and I want Matlab to round off the numbers to give the number of d....

10 years ago | 3 answers | 0

### 3

answersQuestion

Counting zeros

Given a function f(x), Is there a simple way to get MATLAB to determine the number of zeros it has in some arbitrary interval [a...

10 years ago | 3 answers | 0

### 3

answersQuestion

Defining function handles in MATLAB

How might I define a function handle? For example, I want to define a function f(x)=2*x^3+7*x^2+x I want MATLAB to evaluate f(...

10 years ago | 6 answers | 0

### 6

answersQuestion

Presentation of results -- table

Say I have a loop that something like: for n=1:10, var1(n)=var1(n-1)+5 var2(n)=2*var1(n) var3=... so on end ...

10 years ago | 2 answers | 0

### 2

answersQuestion

Cobweb graph

I want to draw a cobweb graph for sin(x). Here is a code (based on an online source) that seem to fail to work, grateful if some...

11 years ago | 2 answers | 0

### 2

answersQuestion

Differential of a User-defined Function (Matlab)

Hi, How might I make my script perform differentiation on a user-defined function? I also want the function and its derivative ...

11 years ago | 1 answer | 0

### 1

answerQuestion

User-defined Functions Applied throughout a Script

Hi, I am attempting to write a Matlab script that uses a user-input (hence general) function, f(x), throughout the script. I ...

11 years ago | 1 answer | 0