56 total contributions since 2014

Professional Interests: Internal Fluid Dynamics

Question

Fill under lines in plot3

Hello, I need to fill under the Z-data in a plot3. I have below function. function mmplot3(x,y,z,c,w,b,d) %MMPLOT3 3...

3 years ago | 0 answers | 0

Question

How to plot multiple arrays in a 3d or surface plot?

Hi, I plotted my array using the code: x=[1*1001] vector from 0 to 1; for nt=1:Nt t=0.1+(nt-1)*dt; ... ...

3 years ago | 1 answer | 0

Question

How to know exact coordinates of an intersection of two functions using fplot and function handle?

Hi, This might be trivial to code. However I could not find the coordinates of intersection point. I have two functions ...

4 years ago | 1 answer | 0

Question

Vector output of a function inside a for loop

Hello, So sorry for such a long code. I have a loop and a nested function whose input and output variables use the index of ...

4 years ago | 1 answer | 0

Question

Why if condition does not store my variables?

Hello, Please forgive me my post is long. But I debugged and I came up with no solution. I want to store my u, p and gap arr...

4 years ago | 1 answer | 0

Question

Symbolic substraction of multiple valued functions

Hello, I have two equations which are the same but in a different format. byhand is arranged version of thetadouble function....

4 years ago | 1 answer | 0

Question

Weird plot axis range and ticks

Hello, Just a quick question, I intended to compare numerical solutions and analytical solutions of a system. I plot them. B...

4 years ago | 1 answer | 0

Question

NaN values when using trapz and second order coupled ode

Hi, Firstly, apologise for a long question. I could not make it shorten. Let me explain the problem. <</matlabcentral/ans...

4 years ago | 1 answer | 1

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

4 years ago

Question

float point arithmetic and vpasolve

Hi, I have symbolic integrations. (int_1 , int_2 inside t.m). I need to solve an equation system with these integrations...

4 years ago | 1 answer | 0

Question

VPA > While converting from 'sym': The conversion returned a value of class 'matlab.mixin.Heterogeneous', which cannot be inserted into an array of class 'matlab.graphics.illustration.ColorBar'.

Hi, This interesting error is caused from the following code: x0 = [.1, .1]; options = optimoptions('fsolve','Displa...

4 years ago | 0 answers | 0

Question

vpasolve for nonlinear system of equations instead of fsolve for complex valued results

I have nonlinear 2 quite complex equations for 2 unknowns. At first, I used fsolve. But, because the equations are complex value...

4 years ago | 0 answers | 0

Question

Matlab limitation in fsolve using function input

Hello, I tried to loop for time value (T) inside my fsolve, but fsolve is pretty unforgiving. The time loop does not seem...

4 years ago | 2 answers | 0

Question

For loop inside functions in fsolve

Hello, I have 2 by 2 system of nonlinear equations. I will use for loop for my time T inside these two functions. I have...

4 years ago | 1 answer | 0

Question

Converting symbolic function to symbolic formula in order to use FSOLVE

Hi, I need to convert symbolic functions integral_result_1 and integral_result_2 to symbolic formula in order to use fsolve for ...

4 years ago | 1 answer | 0

Question

fsolve Assignment has more non-singleton rhs dimensions than non-singleton subscripts

Hi, I have a symbolic integration and I need to use fsolve for my nonlinear 2 by 2 system: function F=torder1(x) % cle...

4 years ago | 1 answer | 0

Question

Plotting in for loop by adding second dimension to the variables

Hello, I need to plot H,u at times t=0.1, 0.2, 0.3, ...1 in the same plot over a range of time. I know below code is w...

4 years ago | 0 answers | 0

Question

Error in alternateGetframe when creating a video in a large for loop

Hello, I am using Matlab 2015a, 2015b. I think there is limitation of matlab for creating movies! I tried all possibili...

4 years ago | 1 answer | 0

Question

Adding multiple legends outside for loop which is for multi variables

Hello, I used two different colourbar for two different variables. The variables are plotted in for loop. Legends should be ...

4 years ago | 1 answer | 0

Question

Implicit finite difference for 5 simultaneous pde and Newton-Raphson method

Hello, I am trying to solve my system with 5 nonlinear pde with 5 unknown functions using implicit finite difference method. ...

4 years ago | 0 answers | 0

Question

unrecognized input argument moviegui MATLAB R2015b

Hello, I tried this code: h=figure; movegui(h, 'onscreen'); rect = get(h,'Position'); rect(1:2) = [0 0]; vi...

4 years ago | 1 answer | 0

Question

How to fill an area that is half NaN half variable in the figure?

Hi, I know how to fill an area in a figure. But, this time I have some values of my function are variable some of them NaN. I...

5 years ago | 1 answer | 0

Question

Which tool can I use to solve the nonlinear pde system with three functions?

Hello, I have three nonlinear equations with three unknown functions as attached. Which tool will be more useful and easier t...

5 years ago | 2 answers | 0

Question

How to draw a line in if condition and plotting

Hello, My code is: dx=0.01; x=0:0.01:1; dt=0.0001; for nt=1:10001 t=(nt-1)*dt ... ...

5 years ago | 1 answer | 0

Question

Several statements in if condition plotting and drawing arrow

Hello, My code is like this: ... for nt=1:10001 t=(nt-1)*dt ... if nt==1 | nt==101 | nt==1001 ...

5 years ago | 1 answer | 0

Question

how to solve a pde with an integration inside the equation

Hello, My function is H(x,t) . H(x,0) = 1/2 I need to solve d/dt(int_1^x dH/dt dx) + dH/dt +2 dH/dx -C(t)/2 = 0...

5 years ago | 0 answers | 0

Question

adding multiple arrows with latex in a plot

Hi, I have a plotting code but I cannot set two latex texts in a plot with arrows. Anyone knows?

5 years ago | 1 answer | 0

Question

putting a legend to plot a data in a for loop

Hello, I have : if l==1 thickness = bodyfunction1; end if l==2 thickness = bodyfunc...

5 years ago | 1 answer | 0

Question

Changing 2D line graph into 3D graph by adding an axes from a condition

Hi, I have my main script with a nested function. p2 is array valued and it is calculated in the main script and nested funct...

5 years ago | 0 answers | 0

Question

Incorrect number of input arguments when plotting in the main script getting data from a nested function

Hi, My main script is : dx=0.01; t=0.1; for i=1:101 xx(i)=(i-1)*dx; end ...... ...... for i...

5 years ago | 1 answer | 0