Feeds
답변 있음
How to pick a value according to its probability
The fastest one (100ns-200ns): function [idx] = get_random_choice(p) % Random choice with probability % Example: get_rand...
How to pick a value according to its probability
The fastest one (100ns-200ns): function [idx] = get_random_choice(p) % Random choice with probability % Example: get_rand...
3년 초과 전 | 1
문제를 풀었습니다
Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...
거의 4년 전
답변 있음
How to create a checkerboard matrix without inbuilt function.
It is more natural to use modulus on meshgrid: [iX,iY] = meshgrid(1:8,1:8); Mask=mod(iX+iY,2);
How to create a checkerboard matrix without inbuilt function.
It is more natural to use modulus on meshgrid: [iX,iY] = meshgrid(1:8,1:8); Mask=mod(iX+iY,2);
대략 4년 전 | 0
문제를 풀었습니다
Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...
거의 5년 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
거의 5년 전
문제를 풀었습니다
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...
거의 5년 전
문제를 풀었습니다
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. The element values ...
거의 5년 전
문제를 풀었습니다
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:...
거의 5년 전
답변 있음
How to remove labels and grey space between subplots so that the subplots fill-up the entire figure
A cleaner version: tlo = tiledlayout(2,2,'TileSpacing','none','Padding','none'); [X,Y,Z] = peaks(20); nexttile, imagesc(Z) ...
How to remove labels and grey space between subplots so that the subplots fill-up the entire figure
A cleaner version: tlo = tiledlayout(2,2,'TileSpacing','none','Padding','none'); [X,Y,Z] = peaks(20); nexttile, imagesc(Z) ...
거의 5년 전 | 0
답변 있음
How can I fill a vector with another one with different size?
To find the error source run: length(xpath(1:1:end)) %=100 length(fullPath(1:2:end)) %=101 So change the code to: ...
How can I fill a vector with another one with different size?
To find the error source run: length(xpath(1:1:end)) %=100 length(fullPath(1:2:end)) %=101 So change the code to: ...
9년 초과 전 | 0