photo

University Glasgow


Last seen: mer än ett år ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How can I equally space a contour level
Please can someone help with equally spacing a contour. I tried different approach but couldn't work. I have attached the data a...

mer än ett år ago | 0 answers | 0

0

answers

Question


Is possible to integrate numerical data using quadrature method?
I have attached the numerical data. xi = linspace(-0.3, 0.3, 201); u = linspace(0, 3, 201); I used trap metho...

mer än ett år ago | 1 answer | 0

1

answer

Question


Why does my script takes longer time to execute than expected?
Hi, I tried to run my matlab script. In the attached file: MBBA5CBPAA_Result.m, I tried to run only the second section:Active di...

mer än ett år ago | 0 answers | 0

0

answers

Question


How to set contour levels
Hi, I'm trying to plot a contour. I tried this: contourf(u, xi, Da1(:, :), 50); and I got the attached figure Contour1 with c...

nästan 2 år ago | 1 answer | 0

1

answer

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

nästan 2 år ago | 1 answer | 0

1

answer

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

nästan 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 2 answers | 0

2

answers

Question


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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 2 answers | 1

2

answers

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 0 answers | 0

0

answers

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 2 answers | 0

2

answers

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

mer än 2 år ago | 0

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

mer än 2 år ago | 0

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

mer än 2 år ago | 2 answers | 0

2

answers

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

mer än 2 år ago | 1 answer | 0

1

answer

Question


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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 0 answers | 0

0

answers

Load more