Bjarke Skogstad Larsen
Aalborg University
Followers: 0 Following: 0
Feeds
제출됨
Stratified Block Randomization
This matlab function performs (stratified) block randomization.
3년 초과 전 | 다운로드 수: 1 |
문제를 풀었습니다
Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...
4년 초과 전
답변 있음
while loop not ending, juz stopped at i = 3
In your code, once the following is true, it is always true, since you don't modify any of the variables inside the 'if' if a(i...
while loop not ending, juz stopped at i = 3
In your code, once the following is true, it is always true, since you don't modify any of the variables inside the 'if' if a(i...
4년 초과 전 | 0
문제를 풀었습니다
Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...
4년 초과 전
문제를 풀었습니다
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 ...
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
문제를 풀었습니다
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...
4년 초과 전
문제를 풀었습니다
Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...
4년 초과 전
문제를 풀었습니다
Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
문제를 풀었습니다
Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
문제를 풀었습니다
Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...
4년 초과 전
문제를 풀었습니다
Solve a System of Linear Equations
*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...
4년 초과 전
문제를 풀었습니다
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,....
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
문제를 풀었습니다
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...
4년 초과 전
답변 있음
Is there any faster way (parfor related)?
You could speed this up by pre-allocating memory for A if you know the size of b: A=nan(1000000,5,100); % cumulation matrix pa...
Is there any faster way (parfor related)?
You could speed this up by pre-allocating memory for A if you know the size of b: A=nan(1000000,5,100); % cumulation matrix pa...
4년 초과 전 | 1
| 수락됨
답변 있음
For loop gives the same output
You need to initialize the matrixes: L_D, lamda and cond. Always initialize variables before a loop when you only set part of t...
For loop gives the same output
You need to initialize the matrixes: L_D, lamda and cond. Always initialize variables before a loop when you only set part of t...
4년 초과 전 | 0
| 수락됨
답변 있음
Incrementing certain values in a matrix for several iterations
I'm not sure exactly what you are trying to achieve but I think I can help you out anyway. You are incrementing vp in each it...
Incrementing certain values in a matrix for several iterations
I'm not sure exactly what you are trying to achieve but I think I can help you out anyway. You are incrementing vp in each it...
4년 초과 전 | 0
| 수락됨
제출됨
Synthetic Minority Over-sampling Technique (SMOTE)
Synthetic Minority Over-sampling Technique, DOI: https://doi.org/10.1613/jair.953
4년 초과 전 | 다운로드 수: 48 |
질문
Hittest axes with WindowWheelScrollFcn callback
I am attempting to make a GUI that has interaction using the mouse wheel, and the GUI behavior should depend on which element th...
6년 초과 전 | 답변 수: 1 | 1
1
답변질문
Coefficients from butter function differ between platforms
I've into something I find odd. When comparing results with a colleague, we discovered some differences even though we ran th...
거의 8년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Rotate and display numbered tile
Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...
대략 8년 전
문제를 풀었습니다
Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...
대략 8년 전
문제를 풀었습니다
Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...
대략 8년 전
문제를 풀었습니다
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
대략 8년 전
문제를 풀었습니다
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
대략 8년 전
문제를 풀었습니다
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
대략 8년 전