Last seen: 3 months ago Active since 2021

Followers: 0   Following: 0

All

Feeds

View by

Question

Issue in line plot while saving in vector graphics
I had a matlab figure, it contains 4 lines. When I'm trying to save as pdf/eps/emf, one of the line's resolution is going crazy....

9 months ago | 1 answer | 0

1

Submitted

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

Question

Solving Inequalities using symbolic tool box
When I try to solve simple inequality let say the solution is but matlab is giving wierd answers syms x solve(x^2 - 2...

11 months ago | 1 answer | 0

1

Submitted

Extract data from line plots in a MATLAB Figure
This function will extract data from the given axes of the Matlab figure.

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

1 year 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?

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

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

1 year ago | 1 answer | 1

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

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

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

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

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

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

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

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

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

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

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

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

2 years 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,....

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

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

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

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

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

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

2 years ago | 2 answers | 0