Answered
I want to solve the below mentioned system of ODEs. However I get the warning "Explicit solution could not be found. > In dsolve at 194 " Can anyone explain me why?
First of all, the first five lines are not needed. To answer your problem: this nonlinear differential equation system can not b...

9 years ago | 0

Answered
plotting from one gui into another
I use the programmatic way of creating GUIs but the following should work in GUIDE too. # create the first GUI with a pushbut...

9 years ago | 0

Answered
limit to infinity of Left Riemann Sum
If I am not mistaken, you try to determine the limit of the left Riemann-sum for the value of the definite integral. Of course y...

9 years ago | 0

| accepted

Question


Convert from cell to string
I have the following problem. I have a sentence as a string. I wan to process some words in it. My idea was to isolate the words...

9 years ago | 3 answers | 0

3

answers

Answered
Coupled ODE with ode45
I found the mistake. It was a sign. :) The correct function is function dz = myode(v,z) alpha = 0.001; C0 = 0.3;...

9 years ago | 0

| accepted

Answered
Coupled ODE with ode45
Code your function as follows. function dz = myode(v,z) alpha = 0.001; C0 = 0.3; esp = 2; k = 0.044; f...

9 years ago | 0

Answered
How do I get the x,y coordinates from the scatter graph I generated?
You created the scatter plot in view of vectors a and b. So those are the coordinates. Supposing you only have the scatter plot ...

9 years ago | 0

Answered
Coupled ODE with ode45
On line dydV = @(V,y) -alpha*(1+eps.*X)./(2*y); X is not included. I would solve it as a coupled system or solve it analytical...

9 years ago | 0

Answered
Building a GUI from user input
function myGUI S.f = figure; S.row = uicontrol('Style','edit', 'Units','normalized', ... 'Position',[0.4 0.6 0.1 ...

9 years ago | 0

| accepted

Answered
Find array elements from condition on indices w/o loop
If you regard A as the points on a plain, than you have the x and y coordinates of those specific points stored for example in m...

9 years ago | 1

Answered
Error: Attempted to access din(289,1); index out of bounds because size(din)=[288,543].
The error occurs first when i=m+1 (ie. 289) and j=2 since you refer to din(289,1). In this case the debugger is useful.

9 years ago | 0

| accepted

Answered
I don't get the desired output when running the following code. The output generated is shown in the image.
I do not see the image (perhaps you did not attach it), but the error in your code is the following. You want to display a strin...

9 years ago | 0

Answered
What is the differences between wavrecord and audiorecorder in matlab ?
Do not use wavrecord, since it is removed. If anyone has a newer version of MATLAB, he/she can not use your code. <http://www.m...

9 years ago | 0

| accepted

Answered
How to find the roots of a derivative
I recommend to differentiate V(theta) by hand and then use fzero.

9 years ago | 1

Answered
What does this fsolve error message mean: FSOLVE cannot handle non-square systems; switching to Gauss-Newton method?
You set the vector of the initial solution to size 299 (so 299 number of unknowns are expected). However in the function definit...

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 1

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 2

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

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

9 years ago | 2 answers | 0

2

answers

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

9 years ago | 1

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

9 years ago | 0

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 2 answers | 1

2

answers

Answered
How to eliminate the elements in an array from another array?
Simply, c = a; c(b) = [];

9 years ago | 0

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

9 years ago | 6

Load more