已回答
How to convert char string to bit string
str='100100 1110011 1100100 1100001 1100100' str=regexprep(str,' ','') result = str-'0'

8 years 前 | 2

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

8 years 前 | 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, ...

8 years 前 | 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)); %...

8 years 前 | 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 ...

8 years 前 | 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...

8 years 前 | 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...

8 years 前 | 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...

8 years 前 | 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...

8 years 前 | 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)...

8 years 前 | 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...

8 years 前 | 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...

8 years 前 | 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;...

8 years 前 | 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...

8 years 前 | 3

| 已接受

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

8 years 前 | 4

已回答
Why isn't there any simple command to create a grouped boxplot in MATLAB yet?
Sure, there is matlab function specific for this: <http://www.mathworks.com/help/stats/boxplot.html> load carsmall boxp...

8 years 前 | 3

| 已接受

已回答
DO i need to process the unit8 data when i use "trainautoencoder" function?
The trainAutoencoder accepts inputs of type single, double (and cell). So, just cast your data as double A=double(A); ...

8 years 前 | 3

| 已接受

已回答
I have to get the 8 overlapping neighbouring blocks for each 8x8 block of a 177x144 image. How can i get it
Given columns A,B,C etc just put them together H=[A,B,C] To do it programmatically, save you columns in a cell and then ...

8 years 前 | 3

已回答
How can I delete variables whose name contains a specific word?
The Matlab "clear" command accepts wildcards, so you can do clear *blue;

8 years 前 | 3

| 已接受

已回答
Find the longest path in a graph?
Generally this is NP-hard problem. However, for DAGs (directed acyclic graphs) there is one clever way to solve the problem. It ...

8 years 前 | 3

已回答
evaluating elements of a vector in a function file
First, the "for" loop stop at first iteration because it enters in one "break" condition. Second, in order to fix it, please gi...

8 years 前 | 2

已回答
How do I plot the relationship between two variables in an inseparable function?
(Erroneously canceled my previous answer) Not all s,T verify the equation. To find them use fsolve <https://it.mathworks.com/hel...

8 years 前 | 3

已回答
for loop and calculaion
Sure it doesn't work. This line d2 = (((P.*b)./(6.*l.*E.*I)).*((l./b).*(x-a).^3)+(l^2 - b.^2).*(x-x.^3)) there are for e...

8 years 前 | 3

已回答
how to make an array with only single numbers from 1 till n
Here it is m=1:14 s=regexprep(num2str(m),' ','')-48

8 years 前 | 3

| 已接受

已回答
Smoothing images with user-defined masks as vectors.
Use imfilter function: originalRGB = imread('peppers.png'); imshow(originalRGB); %define filter fil = ones(3,5,1);...

8 years 前 | 3

已回答
hello, i have equation, but dont know how to solve it, x=argmaxD(epsilon), please help
Given D, then just [~,e]=max(G)

8 years 前 | 3

已回答
How do you create the number as mentioned below?
Here it is m=1:30; n=12; s=regexprep(num2str(m),' ','') s(n)

8 years 前 | 3

| 已接受

已回答
Challenge: How to interact with MATLAB figure using mouse events?
Also, try this simple version. You can update 5 pixels here, however choose the number in the for loop. I=zeros(20,20); ...

8 years 前 | 4

| 已接受

已回答
Make a plot using value from a certain line of matrix
Herre it is: %define a 10x10 matrix A=rand(10,10); %plot its 5th column with index as x axis plot(A(5,:)); %de...

8 years 前 | 3

| 已接受

加载更多