Muhammad Usman
Followers: 0 Following: 0
PhD (Scholar) Mathematics
Feeds
질문
How to solve 2nd order BVP using Chebyshev Spectral Method?
Hi, I am tring to solve the following BVP using Chebshev Spectral Method: with boundary conditions: I am following the cod...
1년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to find the order of the power of A matrix?
Hi, I want to calculate the order of the power matrix A. Here order doesn't mean for rows into columns but the power n of the ma...
1년 초과 전 | 답변 수: 2 | 0
2
답변답변 있음
How can I solve this?
% Solve the system of equations starting at the point [0,0,0]. % PL = x(1); c = x(2); k = x(3); % Initial guess is [0,0,0], yo...
How can I solve this?
% Solve the system of equations starting at the point [0,0,0]. % PL = x(1); c = x(2); k = x(3); % Initial guess is [0,0,0], yo...
대략 2년 전 | 0
질문
Problem in implementing Echelon Form and Solve System of Linear Equations
Here is my code: A = [3 2 1;-4 5 7;1 0 -9]; b = [1;4;5]; % Solving System of Linear Equations by using built-in command for i...
대략 2년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.
2년 초과 전
문제를 풀었습니다
Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
2년 초과 전
질문
How to do manual operation of cross multiplication or substitution?
If syms A B x y = A*x^2 + B*x; dy = diff(y) d2y = diff(dy) then how to get where d2y is the second derivation; using subs o...
거의 3년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
거의 3년 전
질문
Optimize legend command?
Hi, I am struggling with LaTeX in legend, so far I wrote legend like: legendStrings = string(n); l = legend(legendStrings); s...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
What's the problem with this simple anonymous function?
Here's an simple code: clear all; clc; close all; n = 1:3; for i = 1:numel(n) %numel is used if someother time I'll use negat...
대략 3년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
대략 3년 전
질문
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 ...
3년 초과 전 | 답변 수: 0 | 0
0
답변질문
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...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
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. ...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
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)...
3년 초과 전 | 답변 수: 0 | 0
0
답변질문
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...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
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] ; ...
거의 4년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Determine the square root
Determine the square root of the value the user has entered, n.
4년 초과 전
문제를 풀었습니다
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...
4년 초과 전
문제를 풀었습니다
Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...
4년 초과 전
문제를 풀었습니다
Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...
4년 초과 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
4년 초과 전
문제
Find the remainder with the factorial of PRIMES?
* Take a number greater than or equal to 2 and take its primes. e.g. 6 and its primes are 2 3 5 * calculate the factorial of i...
4년 초과 전 | 0 | 솔버 수: 10
문제를 풀었습니다
Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...
4년 초과 전
문제를 풀었습니다
Mysterious digits operation (easy)
What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...
4년 초과 전
문제를 풀었습니다
Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...
4년 초과 전
문제를 풀었습니다
Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...
4년 초과 전
문제를 풀었습니다
Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...
4년 초과 전