Respondida
I need to create a matriz since two different?
Try a=[V, C];

más de 9 años hace | 1

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

más de 9 años hace | 1

Respondida
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)); %...

más de 9 años hace | 1

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 1

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 4

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

más de 9 años hace | 4

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 3

| aceptada

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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.

más de 9 años hace

Resuelto


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 ]

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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?

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

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

más de 9 años hace | 4

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Cargar más