Community Profile

# Meva

Last seen: 2 years ago Active since 2014

Professional Interests: Internal Fluid Dynamics

All

#### Content Feed

View by

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

6 years ago | 0 answers | 0

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

6 years ago | 1 answer | 0

### 1

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

6 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 1

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

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 0 answers | 0

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

7 years ago | 0 answers | 0

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

7 years ago | 2 answers | 0

### 2

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 0 answers | 0

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 0 answers | 0

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 1 answer | 0

### 1

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

7 years ago | 2 answers | 0

### 2

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

8 years ago | 1 answer | 0

### 1

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

8 years ago | 1 answer | 0

### 1

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

8 years ago | 0 answers | 0

### 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?

8 years ago | 1 answer | 0

### 1

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

8 years ago | 1 answer | 0

### 1

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

8 years ago | 0 answers | 0