Community Profile

# University Glasgow

Last seen: 6 dagar ago Active since 2022

#### Content Feed

View by

Question

For over three dimensional data
I have a data of the form: A = 7x9x7, where u = [1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6]. Please how can loop over u. I tried for j = ...

### 1

Question

Extract of data for the last time step
I have tried to extract theta at the middle of the array for all t. Please, how can I extract theta middle that correspond to t...

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 2

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 2

Question

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

### 1

Question

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

### 1

Question

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

### 0

Question

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

### 1

Question

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

### 1

Question

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

### 1

Question

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

### 2

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

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

Question

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

### 2

Question

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

### 1

Question

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

### 1

Question

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