Community Profile

Last seen: 5 dagen ago Active since 2021

All

#### Content Feed

View by

Submitted

Latex plotstyle
The present code converts standard Matlab figures into Latex style with one click.

Question

How to assign different values to different variables at once using deal() function?
I had some values which are in a single vector named "param". Let us consider it has "n" elements. I want to assign this "n" val...

3 maanden ago | 1 answer | 0

### 1

Submitted

Plot in Latex format
This function extends the capabilities of the plot function in Matlab and enhances the visual output of a basic plot.

Question

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

8 maanden ago | 1 answer | 0

### 1

Question

At max, how many systems of odes can we solve at once?
I need to solve the 5*n^2 system of odes at once. I got a solution till n = 61 (18605 ODEs). I want to know the maximum number ...

9 maanden ago | 1 answer | 0

### 1

Question

How do I plot Streamlines of velocity components of spherical coordinate system?
I solved Navier stokes in Spherical coordinates and I got velocity field inside a sphere i.e If I plot contours using the ...

9 maanden ago | 1 answer | 0

### 1

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

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

ongeveer een jaar 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...

ongeveer een jaar 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 ...

ongeveer een jaar 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...

ongeveer een jaar 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|...

ongeveer een jaar 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 ...

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar 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 ...

ongeveer een jaar 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...

ongeveer een jaar 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| ...

ongeveer een jaar 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 ...

ongeveer een jaar 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,....

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar 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:...

ongeveer een jaar 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. ...

ongeveer een jaar 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 ...

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar ago | 1 answer | 0

### 1

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

ongeveer een jaar 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...

meer dan een jaar ago | 1 answer | 0