Réponse apportée
I need to create a matriz since two different?
Try a=[V, C];

plus de 9 ans il y a | 1

Réponse apportée
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, ...

plus de 9 ans il y a | 1

Réponse apportée
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)); %...

plus de 9 ans il y a | 1

Réponse apportée
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 ...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
how to sparse matrix
According to the lines before alloc() call, <https://it.mathworks.com/help/optim/ug/factory-warehouse-sales-allocation-model.h...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 3

| A accepté

Réponse apportée
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)...

plus de 9 ans il y a | 4

Réponse apportée
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...

plus de 9 ans il y a | 4

Réponse apportée
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...

plus de 9 ans il y a | 3

| A accepté

Réponse apportée
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;...

plus de 9 ans il y a | 4

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 3

| A accepté

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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 ]

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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?

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Réponse apportée
How I store/save the window figure out from running some codes?
Better to use <https://it.mathworks.com/matlabcentral/fileexchange/23629-export-fig>

plus de 9 ans il y a | 4

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Charger plus