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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 2

| akzeptiert

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

fast 10 Jahre vor | 2

| akzeptiert

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 4

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

fast 10 Jahre vor | 4

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

fast 10 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 4

| akzeptiert

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

fast 10 Jahre vor | 3

| akzeptiert

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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 ]

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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?

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

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

fast 10 Jahre vor | 4

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Mehr laden