Professional Interests: differential equations, fluid mechanics, MATLAB
Top 1% contributor
After thorough discussions, the answer can be found on <http://stackoverflow.com/questions/33543906/how-to-assign-pointers-to-an...
Answered 25 days ago
I started learning OOP in MATLAB and I saw that we can either use the colon(A,B) syntax or simply A:B. This kind of method works...
Asked 12 months ago
1 year ago
If you want to open an external file outside MATLAB, use the <http://www.mathworks.com/help/matlab/matlab_env/run-external-comma...
Answered 10 months ago
Energy(Energy == 0) = NaN;
It will not shorten the length of the vector, but will not be displayed on the graph.
Answered 11 months ago
It is just a standard matrix-matrix product: u*r. So enter
value = u(1,:)*r;
The j-th column of the matrix "value" will ...
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...
Asked 1 year ago
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...
As my project grows, I came up with the idea to arrange the different functions into different folders. For example the solvers ...
I want to create a finite element object oriented program. I have a class *Node*. Since the nodes in a finite element mesh (repr...
Asked 26 days ago
These are typical boundary layer equations. There are several strategies to tackle it. The two main solution methods: truncate i...
Plot like a multivariate function: by its level sets.
Change xlable to xlabel and ylable to ylabel. Then it will work.
Since rows navMemory.navState = 3; and navMemory.kk_temp = 0; occur under the same condition (navMemory.kk_temp >10), you can pu...
Write it into the Editor:
A = 10;
v0 = 2;
T = 5;
t = 0:0.01:T;
g = 9.81;
x = cos(A*pi/180)*v0*t;
y = sin(...
Answered 1 year ago
If you want to include computations into LaTeX, try the <http://www.mathworks.com/help/matlab/matlab_prog/publishing-matlab-code...
First, make sure that MATLAB is working fine. Then you can delete the .iso. It was only needed for the installation.
Yes, it is. The principle is that you create different views and then concatenate it to a movie. See <http://www.mathworks.com/m...
During a shooting method you guess initial values from where you start solving the boundary value problem (BVP) as an initial va...
You should use the LaTeX interpreter:
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...
I found the mistake. It was a sign. :) The correct function is
function dz = myode(v,z)
alpha = 0.001;
C0 = 0.3;...
S.f = figure;
S.row = uicontrol('Style','edit', 'Units','normalized', ...
'Position',[0.4 0.6 0.1 ...
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.
Do not use wavrecord, since it is removed. If anyone has a newer version of MATLAB, he/she can not use your code.
I recommend to differentiate V(theta) by hand and then use fzero.
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 ...
The syntax of writing a function is what you have written. When you want to call it, do
out = magic(in)
Be careful thoug...
Since B is a vector not a function, you can use <http://www.mathworks.com/help/matlab/ref/cumsum.html cumsum>. That is
a = ...
Create this function:
function du = diffeq(t,u)
k1 = 5; k2 = 5;
m1 = 2, m2 = 2; w1 = 5;
L1 = -2; L2 = 2;
du = z...