Réponse apportée
How to convert logical vector to a number?
Well here's one way. logicVector = logical([1 0 0 0 1 0 0 0]); sum(2.^(numel(logicVector)-find(logicVector))) I have no i...

environ 4 ans il y a | 1

Réponse apportée
How to make a repetitive random array with a curtain interval?
It's not really clear what the requirements are for cycle length and whether each cycle needs to end on specific values, but may...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to fill alternate regions in an edge-detected image with white color?
I'm just gonna put this here ... inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/112893/131edge...

environ 4 ans il y a | 0

Réponse apportée
make the white background transparent
Tangential, but ... It's true IPT/MATLAB has no idea what to do with it, but it's certainly possible. I don't remember how muc...

environ 4 ans il y a | 0

Réponse apportée
Image convert to RGB to YUV420
https://www.mathworks.com/matlabcentral/fileexchange/56857-yuv-processing-tool-for-matlab-r2015 https://www.mathworks.com/matla...

environ 4 ans il y a | 0

Réponse apportée
Any guess why am recieving this error xlabel(‘Time(sec)’) | Error: The input character is not valid in MATLAB statements or expressions. when i run this code shown
These characters: ‘’ are apostrophes, which aren't valid characters. What you need is a single quote ' plot(t,y*180/pi,'k'...

environ 4 ans il y a | 0

Réponse apportée
find figures (squares, rectangles, circles) with matlab
@Image Analyst's answer is leagues better than this, but I was toying with it last night. I figured I'd throw it out there. I ...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
Color curve/Tone curve for an image
This is an example of how one might back-calculate the curve applied to an image. For the purposes of this example, I'm going t...

environ 4 ans il y a | 0

Réponse apportée
How to resize a specific part of an image?
It would help if the image weren't mutilated by compression to begin with, and it depends what the requirements actually are. I...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Assemble the generated graph
You'll have to adapt it to your data, but here are two ways: % an example vector with wrapping every 180deg x = linspace(-90,1...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can i write infinite symble in matlab using keyboard shortcut
From this link: https://unicodeplus.com/U+221E Windows: Hold Alt, then type 2 2 1 E. Release Alt. Mac: Hold Alt ⌥, then ty...

environ 4 ans il y a | 0

Réponse apportée
Matlab produces empty figure when using plot(x,y,'-')
If you want your points to be connected by lines, save the data as vectors and then plot it outside the loop. If I can assume...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Overlay contourf plot to a JPEG
This is one example. You'll have to adapt it to the code you already have. I'm assuming it's preferred to do this with plottin...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to delete the words/characters from a .txt file?
There are probably faster or more robust ways, but here's one way. alltext0 = fileread('loadcell_data.txt'); alltext0 = split(...

environ 4 ans il y a | 0

Réponse apportée
help for Image Edge Detection using Sobel
You actually have to supply a filename to imread(). That's just a placeholder in the code. % for example A = imread('pepper...

environ 4 ans il y a | 1

Réponse apportée
how do xor to cell array1*1?
Here's one way: % binary as cellchar X = {'10000000'}; Y = {'01000000'}; % convert to actual logical arrays X = X{:}=='1'...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Image processing and analysis, layers on image
It depends what exactly you're doing with image(). If you want to compose an image from many similarly-sized images, you should...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Overlapping coloured circles - RGB circles
This creates an image: sz = [512 512]; % image size cim = sz.*[0.46 0.5]; % [y x] center of image r = mean(sz)/4; % radius of...

environ 4 ans il y a | 0

Réponse apportée
Can I convert RGB pixel values to Letters in an Image?
I'm not sure if this is what you're after, but you can generate images of text in various ways. Bear in mind that for a MxN inp...

environ 4 ans il y a | 2

Réponse apportée
find number of people in thermal image?
This is a start. If you have the original images instead of the pseudocolored ones, that would be a lot better. Otherwise, thi...

environ 4 ans il y a | 1

Réponse apportée
Add push button to GUI to be able to change image for color thresholding in image processing and save button to save images
Try the attached. I kind of made a mess, but I slapped a save button in there that'll just save the four parameters and two ima...

environ 4 ans il y a | 0

Réponse apportée
Image To Sound Error. Not Enough Arguments
The error is occurring because you're calling without specifying one of the first two arguments. You need to provide all argume...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How do I change image background to black?
For a crude binary masking: inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/938679/image.jpeg')...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Contrast Stretching with law
Here: % inputs inpict = imread('peppers.png'); invec = linspace(0,1,100); % for creating line plot % k is [alpha beta gamm...

environ 4 ans il y a | 0

Réponse apportée
Contrast stretching??? this pic
Let's start with the basic approach using stretchlim() and imadjust(). In this case, stretchlim() returns the limits that will ...

environ 4 ans il y a | 0

Réponse apportée
Contrast vs brightness vs gamma
Regarding visualization, I find that it's helpful to use flat-shaded contour maps to represent the shift in values. At least I ...

environ 4 ans il y a | 0

Réponse apportée
is it possible to slow down CPU to an arbitrary pace?
In order to know how it's going to run on an AVR, you'd have to emulate the microcontroller. Like Jan said, even if you were to...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Read color value from custom chart
I'm sure there are better ways, but this is what I rolled with off the top of my head. % the information from the swatch char...

environ 4 ans il y a | 0

Réponse apportée
Increasing exposure of an image
There's a decent answer here: https://www.mathworks.com/matlabcentral/answers/499576-increase-exposure-of-an-image-by-a-certain...

environ 4 ans il y a | 0

Réponse apportée
Changing one color to another in a RGB image
I kind of wish this weren't a dead question. Oh well. You could certainly try to do a logical masking operation. Depending ...

environ 4 ans il y a | 0

Charger plus