Community Profile

photo

Gayan Lankeshwara


Last seen: alrededor de 1 año hace Con actividad desde 2020

Estadísticas

All
  • Thankful Level 3
  • First Review
  • Solver

Ver insignias

Content Feed

Ver por

Pregunta


Finding row indices of a cell array containing a certain element
I hae the following cell array. arr = cell(4,1); arr{1,1}=1:3:15; arr{2,1}=2:2:20; arr{3,1}=3:3:30; arr{4,1}=0:4:10; %...

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Obtaining half-spaces from the convex hull in MATLAB
I have determined the convex hull of certain points in 2-D plane using convhull function in MATLAB. For example, P = [0 0; 1 1...

alrededor de 2 años hace | 3 respuestas | 0

3

respuestas

Pregunta


Can I use ismember to compare a vector with a matrix
Hi there, Imagine I have an array and a matrix as below. array_sample = [10;20;30] matrix_sample = [15,35,10;22,33,44;55,25,3...

más de 3 años hace | 3 respuestas | 0

3

respuestas

Pregunta


How can I modify the datetime ticks used in heatmaps
I am using datetime ticks to represent the x-axis as given in the following MWE code. %% random heatmap h1 = heatmap(rand(60))...

más de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Using a Matlab file as an input argument in a function ?
Assume that I have a sampledata.mat array and I have to input it into a function myfun. I have defined the function as below....

más de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Is it possible to export a figure in Live editor as .eps
I just need to know whether I can export a figure in the Live Editor as .eps ? I can only find options to export as .png, .pdf,...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Changing the xticks in a heatmap to a datetime ticks
I need to change the xticks of the following matrix to be in datetime format. randMatrix = rand(5,10) heatmap(randMatrix) If...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Creating a mesh plot with data in a timetable
Hi there, Assume that I create a time table based on a matrix as follows. X = rand(5,3); Time = seconds(1:5); TT = array2tim...

casi 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Problem with generating random numbers when performing a Monte carlo simulation in Matlab ?
Hi there, I am performing a Monte carlo simulation and this is the code for it. clc; clear all; num_simulations = 1000 ...

casi 4 años hace | 0 respuestas | 0

0

respuestas

Pregunta


How to generate a random number from a user defined discrete uniform distribution in Matlab ?
Hi there, Imagine that I have written the following code in MATLAB. numItems = 100 ; Levels = [0.25, 0.5, 0.75, 1.0] prob = ...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


The figure window remains unresponsive after copying a figure in MATLAB ?
Hi there, I am running MATLAB on a MacBook Air installed with macOS Catalina 10.15.4. When I try to generate a figure and copy...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to utilise the MATLAB debugger mode to initialise a random iteration in a FOR loop ?
Hi there, Just imagine that I have a for loop in a code as show below. for count = 1 : 100 do something end I have foun...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to change certain values of a column in a table depending on a certain time range ?
Hi there, I have an array Total and then I created a timetable to combine them together. t1 = datetime(2020,04,01, 0,0,0); t2...

casi 4 años hace | 1 respuesta | 0

1

respuesta

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace