A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

presque 14 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

presque 14 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

presque 14 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 14 ans il y a

Réponse apportée
Importing data at a regular interval for analysis
I'm adding another answer based on your comment to my previous answer. I wanted to simply add another comment, but I need code ...

presque 14 ans il y a | 0

Réponse apportée
Is dynamic interpolation of input of function for 'quad' integration possible?
All of MATLAB's quadrature methods require an integrand that can be evaluated at vector inputs and return an equally sized vecto...

presque 14 ans il y a | 0

Réponse apportée
Importing data at a regular interval for analysis
What are you actually trying to accomplish? Is it to solve a sequence of systems of three (highly) non-linear equations defined...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
ode15s
If you're going to solve a PDE by the method of lines (i.e., converting it into a system of ODEs), then you will need to provide...

presque 14 ans il y a | 0

Réponse apportée
How to Select one element from each row of a matrix A based on a column matrix B.
So, if I understand correctly, your vector |B| contains column indices (i.e., numbers between |1| and |size(A,2)| inclusive) suc...

presque 14 ans il y a | 3

| A accepté

Réponse apportée
how i discretize linear differential equations(2 or 3 order)
I think your question is poorly posed. Do you call the ODE solver using a syntax such as the following [t, y] = ode23(odef...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Expected file position after FSCANF conversion failure
In case anyone else encounters the issue, I asked this question to the MathWorks support team. MATLAB R2010a corrected a bug wh...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Doubt in Region_Growing
This is *very* hard to read. Please consider marking up (and indenting) your code more properly the next time. I suggest using t...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Fread problem...
You need to specify the |precision| of the data you output using |fwrite| is |double|. Otherwise, the subsequent |fread| operati...

environ 14 ans il y a | 0

Réponse apportée
Double to cell conversion difficulties
There is a slight misunderstanding in the way you use |datenum|. Specifically, |datenum(temp(:,1),'dd/mm/yy')| returns a |double...

environ 14 ans il y a | 1

Question


Expected file position after FSCANF conversion failure
Suppose the file |data.txt| contains the lines --VarX 0.0 0.0 1.5 10.3 Is there an expected output of the following s...

environ 14 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
how to initialize an M×N array whose size is unknown in for-loop
As your data is all numeric, you *can* do something akin to the following x = []; y = []; for i = 1:150, % ... like...

environ 14 ans il y a | 0

Question


MEX-equivalent of INPUTNAME
All, Is there a way, within a |mexFunction|, of retrieving the actual *name* of (the caller's) argument passed as one of the ...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


Automated way of creating PCODE for distribution purposes while retaining original function documentation
All, I'm in a position where I would like to distribute a number of functions (i.e., M files) as P-code to a third party. Sp...

plus de 14 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
Question about assigning prhs to an int * in a mex file.
The |mxGetPr()| function always returns a pointer to |double|. Pointers to |double| are distinct from pointers to |int| and the...

environ 15 ans il y a | 2