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

ongeveer 8 jaar ago | 2

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

ongeveer 8 jaar ago | 1

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

ongeveer 8 jaar ago | 1

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

ongeveer 8 jaar ago | 1

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

ongeveer 8 jaar ago | 2

| accepted

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

ongeveer 8 jaar ago | 2

| accepted

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

ongeveer 8 jaar ago | 1

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

ongeveer 8 jaar ago | 1

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

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 4

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

ongeveer 8 jaar ago | 4

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

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 4

| accepted

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

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 4

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

ongeveer 8 jaar ago | 3

| accepted

Answered
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); ...

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 2

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 3

| accepted

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 3

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

ongeveer 8 jaar ago | 3

| accepted

Answered
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); ...

ongeveer 8 jaar ago | 4

| accepted

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

ongeveer 8 jaar ago | 3

| accepted

Load more