답변 있음
I need to create a matriz since two different?
Try a=[V, C];

9년 초과 전 | 1

답변 있음
Brightness of two images
If the second image (call it A) has values between [0,1], just consider B=1-A; This one has opposite brightness. If A is 8-bit, ...

9년 초과 전 | 1

답변 있음
How to get an area plot with varying colour intensity (1-D plot).
I have found this workaround... %3d coordinates of a curve x = 0:.05:2*pi; y = sin(x); z = zeros(1,numel(x)); %...

9년 초과 전 | 1

답변 있음
how can I show different values of the image in different colors?
Here it is how to remap a grey scale image into color image by selecting gray values intervals: %original grayscale image ...

9년 초과 전 | 2

| 수락됨

답변 있음
How to remove the edge of this medical image?
The morphological operation imerode() suits your needs. I give you some hints, look at this plot after image erosion with an ele...

9년 초과 전 | 2

| 수락됨

답변 있음
how to sparse matrix
According to the lines before alloc() call, <https://it.mathworks.com/help/optim/ug/factory-warehouse-sales-allocation-model.h...

9년 초과 전 | 1

답변 있음
how to print the translated image and original image in axis in same figure?
What do you mean by "translate"? If you mean transpose try this subplot(1, 2, 1), imshow(image); subplot(1, 2, 2), imsh...

9년 초과 전 | 1

답변 있음
Similarity index beetween different size images
One idea can be appying a transform that reduce the bigger image into an image of the same size of the smaller one. Then apply a...

9년 초과 전 | 3

| 수락됨

답변 있음
Pairs of elements that meet a condition?
A=rand(15,2); f=@(x) x.^2; %or another function you define C=cell2mat( arrayfun( @(k) f(A(k,1))*f(A(k,2))<0 , (1:15)...

9년 초과 전 | 4

답변 있음
Convert mat files to wav
Here it is for listening at the audio in MAT format simply (Matlab uses default sample rate 8192 hertz, but true one is 44100, s...

9년 초과 전 | 4

답변 있음
How do I calculate the proportion of 1s in Vector I at each time step and how to store this data in a vector?
Given a vector of 1s and 0s, you can divide the number of 1s by the overall number of elements. The nnz function computes the nu...

9년 초과 전 | 3

| 수락됨

답변 있음
Is this right code to flip an image upside down,the column should stay the same just fliping the rows and please tell me how I an use the image as input in the function?
To flip an image row-wise, try use the built-in function flip: A=imread('peppers.png'); figure; imshow(A); figure;...

9년 초과 전 | 4

| 수락됨

답변 있음
how to distribute a matrix elements randomly matlab
Joking aside, try to subdivide the whole thing into sub-tasks. I try to give you an example: # Identify in vector m the k sta...

9년 초과 전 | 3

| 수락됨

문제를 풀었습니다


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

9년 초과 전

문제를 풀었습니다


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

9년 초과 전

문제를 풀었습니다


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

9년 초과 전

문제를 풀었습니다


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

9년 초과 전

문제를 풀었습니다


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

9년 초과 전

문제를 풀었습니다


Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

9년 초과 전

문제를 풀었습니다


Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]

9년 초과 전

문제를 풀었습니다


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

9년 초과 전

문제를 풀었습니다


Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

9년 초과 전

문제를 풀었습니다


persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

9년 초과 전

문제를 풀었습니다


チェッカーボードを作ろう
整数 n が与えられた時、以下の様な1と0を含むn×nの行列を作成しましょう。a(1,1) は1にする必要があります。 例: 入力 n = 5 出力 a が [1 0 1 0 1 0 1 0 1 0 ...

9년 초과 전

문제를 풀었습니다


Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

9년 초과 전

문제를 풀었습니다


normalize group of numbers to integers
Hi guys! I have a group of 4 numbers x,y,z,w which comes from 4 integers multiplied with a common factor. [x,y,z,w] = c [i,j,k,...

9년 초과 전

문제를 풀었습니다


chirp again
rise frequency linearly from 0 to frequency f in 1 second and fs samples, initial amplitude must rise smoothly like an aircraft ...

9년 초과 전

답변 있음
How I store/save the window figure out from running some codes?
Better to use <https://it.mathworks.com/matlabcentral/fileexchange/23629-export-fig>

9년 초과 전 | 4

문제를 풀었습니다


Mirror Image matrix across anti-diagonal
Given an input number x, create a Mirror Image matrix 'Y' across anti-diagonal in following way:- Example:- If x=3, Y= [1 ...

9년 초과 전

문제를 풀었습니다


Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] ...

9년 초과 전

더 보기