A résolu


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

plus de 11 ans il y a

A résolu


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

plus de 11 ans il y a

Réponse apportée
I'm using Matlab 7.0. How can I call a function? "File/New/Function" is missing.
Not a problem. It is just a help for you so that MATLAB creates a sample in advance. I never use this feature because it is not ...

plus de 11 ans il y a | 1

Réponse apportée
I'm using Matlab 7.0. How can I call a function? "File/New/Function" is missing.
The syntax of writing a function is what you have written. When you want to call it, do out = magic(in) Be careful thoug...

plus de 11 ans il y a | 1

Réponse apportée
Cannot compute the following expression using "Symsum"
Since B is a vector not a function, you can use <http://www.mathworks.com/help/matlab/ref/cumsum.html cumsum>. That is a = ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Putting multiple equations into a function
Create this function: function du = diffeq(t,u) k1 = 5; k2 = 5; m1 = 2, m2 = 2; w1 = 5; L1 = -2; L2 = 2; du = z...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Symbolic Math Toolbox - Derive a function with respect to another function
I also bumped into this question when I wanted to create the equation of motion using this method. Matlab's Symbolic Math Toolbo...

plus de 11 ans il y a | 2

Réponse apportée
How can put or place cursor a tex edit box in GUI without a mouse click?
I think someone else also asked it. Here is the answer: <http://www.mathworks.in/matlabcentral/newsreader/view_thread/80041>

plus de 11 ans il y a | 0

Question


Latex interpreter in MATLAB Answers
Is there a LaTeX interpreter integrated into the MATLAB Answers? If not, is it scheduled? It would be great.

plus de 11 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to find co-ordinates of a point in 3D using Matlab functions?
Let the coordinates of the unknown point be x,y,z and m1(x1,y1,z1), m2(x2,y2,z2), m3(x3,y3,z3), moreover the known Euclidean dis...

plus de 11 ans il y a | 1

Réponse apportée
Combining Central Difference Scheme and Gaussian Elimination to Solve Matrix
Your Gauss-elimination program takes effect after this line: %% Solve the linear system If you must use your Gauss-elimi...

plus de 11 ans il y a | 0

| A accepté

A soumis


quadgl
Vectorized Gauss-Legendre quadrature

plus de 11 ans il y a | 1 téléchargement |

0.0 / 5

Réponse apportée
Similarities between matlab and c programming??which toolbox to use?
For the first question: core MATLAB is enough. The syntax (with an example) is: correctAnswer = false; while ~correctAns...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Is a there a Coder Product (Embedded, Simulink,or Matlab) which supports version 2010SP1
I do not know about any third-party product which converts MATLAB code to C/C++ code. So I am afraid, you will have to do it man...

plus de 11 ans il y a | 0

Réponse apportée
Combining Central Difference Scheme and Gaussian Elimination to Solve Matrix
I preserved the structure of your code, but modified it. Now it perfectly works. %% Boundary Conditions x_0 = 0; x_n ...

plus de 11 ans il y a | 1

A soumis


Navier-Stokes solver
Solves the unsteady Navier-Stokes equation with Chebyshev pseudospectral method

plus de 11 ans il y a | 2 téléchargements |

4.5 / 5
Thumbnail

Question


Overload only several functions
Hi, I am totally new to Matlab OOP. For my program to work, I need to redefine the built-in min, max and abs functions. Howev...

plus de 11 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
How to eliminate the elements in an array from another array?
Simply, c = a; c(b) = [];

plus de 11 ans il y a | 0

Réponse apportée
how to find non zero minimum
Lets suppose your matrix is called A. Then you first select those elements that are non-zero (i.e. positive) and after that use ...

plus de 11 ans il y a | 6

Question


sprintf does not work when called from a function
I would like to use the advantages of sprintf over disp, but I have a problem with it. From my main function I invoke an other f...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
how to avoid crashing the computer while running heavy scripts?
Perhaps this is because MATLAB is working on high priority. Try to set it to normal or low priority to maintain responsiveness. ...

plus de 11 ans il y a | 0

Question


What is the computational cost of an nargin check?
I have a program that invokes a function a lot of times in a for loop. In that function I have to check the number of input argu...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Second Order ODE with trouble
You need to rewrite the second order ODE to two first order ODEs. This can be found in many mathematics books and even in the MA...

plus de 11 ans il y a | 0

| A accepté

A résolu


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

plus de 11 ans il y a

A résolu


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

plus de 11 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

plus de 11 ans il y a

Question


How to access all .m files in different subfolders?
As my project grows, I came up with the idea to arrange the different functions into different folders. For example the solvers ...

plus de 11 ans il y a | 3 réponses | 2

3

réponses

Question


Why aren't the essential boundary conditions fulfilled?
I made a Poisson-solver based on Legendre-spectral method and I would like to test it. I used the pdetool, created the square re...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Question


About the File Exchange
How can I see how many people downloaded my uploaded file? I only see the statistics of the last 30 days. Thanks.

presque 12 ans il y a | 1 réponse | 2

0

réponse

Question


How to use the prod function on non-zero elements?
I have a matrix with zeros in its main diagonal. I would like to take the product of the elements in each row (excluding the 0) ...

presque 12 ans il y a | 1 réponse | 0

1

réponse

Charger plus