Community Profile

# University Glasgow

Last seen: 11 giorni fa Attivo dal 2022

#### Content Feed

Visto da

Domanda

Title in maths symbol and title as legend on each plot on different locations.
Please: How can I make a title as legend on each of my plot on the different location apart from the general title? How can I ...

11 giorni fa | 1 risposta | 0

### 1

risposta

Domanda

How to call an equation with dependent variables in a function
Hi, I'm solving a nonlinear systems of pdes using FDM. I received this error: Index exceeds the number of array elements. Index...

circa un mese fa | 1 risposta | 0

### 1

risposta

Domanda

Error tolerance in matlab
I'm using R2022a: I received this when I tried solve of mixed PDEs using finite difference method. Warning: Failure at t=6.1229...

circa 2 mesi fa | 2 risposte | 0

### 2

risposte

Domanda

Remove white space in plot
Please how do I reomove the white space in the plot I have attached?

circa 2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Legend for multiple plots varying parameters
Pleas, how do I make my legend to match with my data? I have attached the figure. I want the legend data1 to corresponds to xi =...

2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Legend for varying parameters in a loop
Is it possible to have legends such that for xi=-0.06 (I have 4 different plots for various times). I want the lines to have the...

2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Please how do I get rid of local variables may have been changed to match the globals error?
I this error: Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB wil...

2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Data plot for different values
I want plot theta as a function of z at t = time(nt) for all xi values but receive: Error using plot: Data cannot have more than...

2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How to plot a function for different values of input parameter in a function
Hi, Please, how do I create a procedure/function such that it carries \xi as an input and use it to plot r for different val...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How to plot discontinous function f(x,y)
Please, how do I plot discontinous function of two variables: f(x,y) z = f(x,y) = x-.8193318913*sin(x)*cos(x)/(cos(x)^2+sinh(...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Finding root of nonlinear functions
Please, how do I find all the roots this function: y-0.8193318913*tanh(y)+0.2931044702e-2*tanh(y)/(0.7500000000e-3*y^2-0.162233...

3 mesi fa | 2 risposte | 0

### 2

risposte

Domanda

Contour plot of a function
Please someone should with a contour plot of a p for various values of xi and H. For instance, H=0..3, and xi=2.0..0.0, where H...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

I don't want to include initial condition in the plot
Hi, Please, how do omit the initial condition in my plot: I want to omit the plot for t=0: See my code below: figure su...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

I want to use fzero to find the root of a transcendental function r. I have problem on line 33-37 and 52-63
%% initialization clear clc close all %% Model parameters global k1 eta1 alpha3 gamma1 d N Phi xi h C q qstar Theta OddA...

3 mesi fa | 0 risposte | 0

### 0

risposte

Domanda

Integer operands are required for colon operator when used as index.
Warning: Integer operands are required for colon operator when used as index. > In Case1_Ijuptilk_130822 (line 75) Warning...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Saving figures and automatic legend
I tried this ax = gca; exportgraphics(ax,'myplot.png','Resolution',300) but is saving only the last plot. I also want auto...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

plot function of two variables as one variable
I want to plot theta in the middle of the layer by setting z=d/2, for t=0..100. I have attached the snapshot of what I'm expecti...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can I assign zeros to a particular value in an expression
Is it possible to assign zeros to following entries: u(N-N), u(N) i.e u(0) and u(4) in the loop below? N =4; u = (1:N); v = (...

4 mesi fa | 2 risposte | 0

### 2

risposte

Risposto
System of mixed PDE with 2 variables using FDM and RK4
Hi, thank you for your help. The code is working well for 4 counts. But when I tried to generalised, I received this error:...

4 mesi fa | 0

Risposto
System of mixed PDE with 2 variables using FDM and RK4
% I still don't this error despite having 5 by 5 entries in both you theta and v: Error in counts_4_IjuptilK_080822 (line 41) ...

4 mesi fa | 0

Domanda

System of mixed PDE with 2 variables using FDM and RK4
I want solve the attached mixed pdes in 2 variables with FDM and R4K. See my trial below: I received and error that 'N' is uncr...

4 mesi fa | 2 risposte | 0

### 2

risposte

Domanda

I tried Euler's method and RK4 method but I'm getting different results. Please can someone help
function HeatPDE() global x_vec dx k clear clc clear all %%%% du/dt = d^2u/dx^2; u is f(x,t) %%%% DFM: (u(x, t+dt) -u(x...

4 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Error from ode15s
Received this error: Error in ode15s (line 153) odearguments(odeIsFuncHandle, odeTreatAsMFile, solver_name, ode, tspan, y0, op...

4 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Solving 3 systems of pde using pdepe
I have 2 sytems of PDEs as seen in the attached file. I transformed the systems into 3 systems of pde by letting w = \partial \t...

4 mesi fa | 0 risposte | 0

### 0

risposte

Domanda

Transforming linear pde to code equation
Hi everyone, Please how can I transform linear pde to code equation. The equations are in the attached file BC: theta(0,t) ...

4 mesi fa | 0 risposte | 0

risposte