Community Profile

photo

Muhammad Usman


School of Mathematics & Statistics

Last seen: 24 días ago Active since 2011

PhD (Scholar) Mathematics

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Thankful Level 3
  • Creator
  • Promoter
  • Commenter
  • Knowledgeable Level 1
  • First Review
  • First Answer
  • Solver

View badges

Content Feed

View by

Question


How to adjust initial condition to nondimensionalization of coupled ODE?
Here is the code for dimenional and non-dimensional form of coupled ODEs using ode45, but both results are not agreeing. Please ...

5 meses ago | 0 answers | 0

0

answers

Question


ODE solution using Fourier series
Hello, I am trying to solve first order ode () using Fourier Series. I wrote the code, but I was doing something, please idetif...

5 meses ago | 1 answer | 0

1

answer

Question


Calling Euler Method to solve Shooting Method
Hi, I am trying to solve a BVP: y''(x) +5y'(x)+4y(x) = 1 with boundary conditions y(0) = 0 and y(1)=1 using shooting method. ...

6 meses ago | 1 answer | 0

1

answer

Question


How to correct the regenerated plot of given analytical solution of ODE?
for for The analytical solution for this ODE is given belown and written as MATLAB in code routine: for t = -log(1-a)...

6 meses ago | 0 answers | 0

0

answers

Question


Addition of numbers in array as string
I am following these lines of code, but generating error when I do: x = randi([0,9],1,20); y = randi([0,9],1,20); x_new = st...

8 meses ago | 1 answer | 0

1

answer

Question


Addition of numbers in array
Lets' say I have 2 vectors: x = [7 4 6]; y = [1 4 4]; But these are not just vector consider them as A number, i.e., 746 and ...

8 meses ago | 1 answer | 0

1

answer

Question


Plot with smaller variation in input argument under user defined function?
I am stuck with a smaller concept that How to Plot with smaller variation in input argument under user defined function? For ex...

9 meses ago | 1 answer | 0

1

answer

Question


How to save last three values from for loop?
I just got stuck to save the last three values of r from the for loop, please help me in this regard. yl = 1; rl = [0, yl] ; ...

9 meses ago | 1 answer | 0

1

answer

Question


How to combine the result of for loop?
Here is a very simple line of code: x = 3; A = 1:x; for i = 1:length(A) y = repelem(A(:,i),i); Y = y(1,:) end I w...

más de 1 año ago | 1 answer | 0

1

answer

Question


Sum and Difference across row and column
Let say there is square matrix of order n-by-n, and n is odd integer A = rand(3) A = 0.4218 0.9595 0.8491 0...

más de 1 año ago | 2 answers | 0

2

answers

Answered
Trouble using fsolve with two non-linear equations and 3 parameter
I think it will works like in this way: function F = eql_coef(x) % x(1) == a % x(2) == d K_H2O = 20.999; K_OH = 1.0478; p ...

más de 1 año ago | 0

Answered
Is this a bug in bar plot
I suggest you to use two additional lines of code highValue=10E15; y = [2 2 3*highValue; 2 5 6*highValue; 2 8 9*highValue; 2 1...

más de 1 año ago | 0

Question


merge mat files with different size?
Hi, Consider I have different .mat files and I want to merge them all and remove the repeated values, but the first problem I a...

más de 1 año ago | 1 answer | 0

1

answer

Question


need help to plot a mesh
I just want to mesh plot a dirac delta function, can somebody help me to do so. I wrote some lines of code to plot dirac delta ...

casi 2 años ago | 1 answer | 0

1

answer

Question


What is the error in this computation?
Here I want to plot a simple sum. I computed it manually by iterating different values, and then did it same by using for loop,...

casi 2 años ago | 1 answer | 0

1

answer

Question


Error in computing numerical solution?
I am enable to compute numerical solution, as it generates weird Initial conditions (may be) compared to the inintial value of U...

casi 2 años ago | 0 answers | 0

0

answers

Question


Spectral Method without FFT in MATLAB
Can somebody guide me that how spectral method will be implemented in MATLAB to PDE (lets say homogeneous heat equation with per...

casi 2 años ago | 0 answers | 0

0

answers

Question


Specrtal Method for Heat Equation
I have one dimensional homogeneous heat eqaution. I want to solve it numerically using by supposing where Taking time deri...

casi 2 años ago | 0 answers | 0

0

answers

Answered
How do i use boundary conditions to find variables in an equation
if you let Lp=constant and make changes in soln = solve(u,eqns,vars); to soln = solve(eqns); you will get a structure soln ...

casi 2 años ago | 0

| accepted

Answered
setting column of a matrix to zero
You haven't define constants a and z, and a vector mt, so I suppose a=-1, z=4 and mt=rand(1,50) and following lines of code to p...

casi 2 años ago | 0

Question


How to plot analytical solution in terms of Fourier Series
I want to plot the analytical solution of the equation given below: for x=-1:1 and t=0:0.4:2 for as suitable values of p. I...

casi 2 años ago | 1 answer | 0

1

answer

Question


How can i plot an inline function?
I wrote a code in which i got and inline function as U = Inline function: U(p,t,x) = (372863112183097.*exp(500....

casi 2 años ago | 2 answers | 0

2

answers

Answered
Adjust subscript style / height
use the following after the plot command xlabel("y_{" + n + "}", 'Interpreter', 'tex') %for alphabet and xlabel(" \Omega_{"...

alrededor de 2 años ago | 0

Question


I am facing problem with big fraction
Hello everyone, When i am writing the following code, "sumx" returns me value in fraction, i want to show my result in terms of...

alrededor de 2 años ago | 0 answers | 0

0

answers

Question


When L is not unique, how can I choose any of L
let say i have a vector S=[ 7 1 15 13 2 14 6 10 12 11 4 8 3 9 5]; and after ...

casi 3 años ago | 1 answer | 0

1

answer

Question


find the longest monotonically increasing subsequence of a sequence of n numbers?
I have algorithm of the longest monotonically increasing subsequence of a sequence of n numbers Let S[1]S[2]S[3]...S[n] be the ...

casi 3 años ago | 3 answers | 0

3

answers

Question


I want to save matrix at each iteration to later use for Multiplication
I have written a code, it is working fne, but i couldnot save the result at each step. clear all; clc a=0:1; b=0:1; c=0...

casi 3 años ago | 1 answer | 0

1

answer

Question


how to call a function one m-file to another m-file
lets say i have one m-file named call1.m having: function t =call1(a,b) a=10; b=5; t=a+b; end and i want to ca...

casi 6 años ago | 1 answer | 0

1

answer

Question


I want to have my error bar graph like given in picture
clear all; clc; C = [0.962 0.9416 0.9606 0.9845 0.9385]; N = [0.9392 0.979 0.948 0 0]; S = [0.9599 0.9276 0.9571 0.93...

más de 6 años ago | 0 answers | 0

0

answers

Question


for loop for different set of values
Hi, i want to run for loop with different set of values as for example for i = 2:6,17:22 Y= 2*i; End Please do it ...

más de 6 años ago | 3 answers | 0

3

answers

Load more