Community Profile

Last seen: 1 dag ago Active since 2021

All

#### Content Feed

View by

Submitted

Guass Jordan elimination Method
This code is used to find solution for linear system AX=B or used to find the inverse of a matrix

Question

How to solve PDE (r and t) with two regions?
Suppose I've a PDE which is valid in two regions. Can we solve this eqns with pdepe solver?

2 maanden ago | 0 answers | 0

### 0

Question

can we plot convergence of a ode solver same as fsolve?
Using 'fsolve', we can use the below code to plot the convergence. x0 = [0,0]; opts = optimoptions(@fsolve,'Display','none','P...

3 maanden ago | 2 answers | 0

### 2

Question

How to limit fsolve to find solution in Real numbers domain
Suppose, If I have some set of non-linear equations. I want to solve those equations with fsolve, but I want solution only in re...

3 maanden ago | 1 answer | 0

### 1

Solved

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

3 maanden ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

3 maanden ago

Solved

Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

3 maanden ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

3 maanden ago

Solved

Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

3 maanden ago

Solved

Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

3 maanden ago

Solved

Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

3 maanden ago

Solved

Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

3 maanden ago

Solved

Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

3 maanden ago

Solved

Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

3 maanden ago

Solved

Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

3 maanden ago

Solved

Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

3 maanden ago

Solved

Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

3 maanden ago

Solved

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

3 maanden ago

Question

Plotting the function on a Sphere?
Let me explain, what I'm actually solving. I'm solving Diffusion-Reaction equation(3D) in spherical coordinates. ...

3 maanden ago | 1 answer | 0

### 1

Question

How to plot a data in spherical coordinates?
Let me explain, what I'm actually solving. I'm solving Diffusion-Reaction equation(2D) in spherical coordinates(axis-symmetric ...

3 maanden ago | 1 answer | 0

### 1

Question

how do I swap both axes in the current plot
I have symbollic function, I'm plotting that function using fplot syms y U = y^2/2 - (3*y)/4; yrange = [0,1]; fplot(U,yr...

4 maanden ago | 2 answers | 0

### 2

Question

How to add color bar for streamslice plot?
i want to know intensity of streamlines, so i need color bar for streamslice plot. can anyone help in this regard. clc, clear...

5 maanden ago | 0 answers | 0

### 0

Question

how to remove arrows in streamslice plot?
I want to remove arrows from this plot. can anyone help in this regard. clc, clear, close; X = linspace(0,1.5); Z = linspac...

5 maanden ago | 2 answers | 0

### 2

Question

Differential algebraic eqn solving using ode15s
I've a 6Differential_Equations's and 6Algebraic_Equations's, with initial condition. when I'm excecuting the code i'm getti...

9 maanden ago | 1 answer | 0

### 1

Question

Coupled Mass and energy equations using bvp4c
clc,clear,close global Pem Peh Da b U yw yf Pem = 2000; Peh = 500; Da = 1e8; b = 0.015; U = 1; yw = 0.9; yf = 0.0503...

12 maanden ago | 1 answer | 0