Answered
Adding text programmatically to a figure
If you just want to put a title over multiple subplots, you can use sgtitle(). If you want text in a box with arbitrary locat...

17 dagar ago | 0

| accepted

Answered
HSV Image Intensity Restrictions
It's easy enough to find out. rgbpict = imread('peppers.png'); hsvpict = rgb2hsv(rgbpict); % threshold at 50% V hsvpict(:,...

17 dagar ago | 0

Answered
How I Can read 3 MSBs in RGB image
Depends what you want the output to be. It might be simple for scalar inputs: % assume uint8 pixel = uint8(250); % using d...

18 dagar ago | 0

| accepted

Answered
Extracting a range from a cell array.
How about x = {"a", "b", "c", "d", "e"} z = horzcat(x{3:end}) % or just z = [x{3:end}] To clarify, the expression x{3:end...

19 dagar ago | 0

| accepted

Answered
bwlabel (Bw) function return Wrong number of Connected Objects
Try this: inputImg = imread('money.png'); % the file has to be read c = rgb2gray(inputImg); % im2gray() is from where? imshow...

19 dagar ago | 1

| accepted

Answered
Im designing a game of battleship, but. im trying to use a code to prevent the user from placing a ship out of bounds
I generally can't stand things written to be so tediously interactive like this, but maybe this is a simplified start. % i as...

19 dagar ago | 0

Answered
How i can read Red channel in 3 RGB Image
This is how you can get the red channel % an RGB image rgbpict = imread('peppers.png'); % just the red channel R = rgbpict(:...

19 dagar ago | 0

| accepted

Answered
Why my value of MSE and PSNR have 3 values?
The images are RGB. The results are 1x1x3 -- one result per channel. If your goal were to get a single value for the whole ima...

20 dagar ago | 0

| accepted

Answered
How to select an area within a range around identified region?
Maybe this is a start radius = 5; % specify some radius % an image and a mask of some sort A = imread('eight.tif'); imshow...

22 dagar ago | 0

| accepted

Answered
create multi mask using ROI Freehand
The way you're doing this is causing objects to be overwritten. You can use the same method I showed in your prior question. ...

22 dagar ago | 0

| accepted

Answered
how to recoup a watermark image !
Try this. mat = imread('cameraman.tif'); % host image watermark = imread('cameraman.tif'); % payload image B2 = im2bw(water...

22 dagar ago | 1

| accepted

Answered
How to edit the font size and font name of y-labels while using the toolbox of addaxis?
It seems addaxis() is a bit in need of maintenance. The object handles are supposed to be stored in the userdata of the main ax...

22 dagar ago | 0

| accepted

Answered
Someone knows why this is happening? and it work a few days ago
You have a script called polar.m which is shadowing the builtin function polar(). Change the name of that script.

22 dagar ago | 1

| accepted

Answered
Save/Crop Figure (bmp) file without background
If you have a raster image displayed in a figure, don't save it from the figure. Use imwrite(). Doing this: A = imread('camer...

22 dagar ago | 1

| accepted

Answered
how can i bring 2 figures together?
If you look, the two x vectors are not the same. They differ in length by 1. You can reuse the latter x if you want. Either w...

22 dagar ago | 1

| accepted

Answered
RIO iteratively to create mask
This is a start im = imread("coloredChips.png"); numROI = 6; % create ROI objects and adjust them imshow(im); for k = 1:n...

23 dagar ago | 0

| accepted

Answered
How to project and fit a 2D path onto a 3D surface?
Something like N = 1000; nturns = 10; rmax = pi; zscale = 0.1; zoffset = 0.5; r = linspace(0,rmax,N); th = linspace(0,n...

23 dagar ago | 0

Answered
how can we increase a value until we get answer
This can be simplified, but let's start with the given approach. format long alpha = [510; 310; 78; 120; 350; 490; 53; 150...

23 dagar ago | 1

| accepted

Answered
How to read jpg in format CMYK?
If imread() can't read CMYK JPG files (as most things can't), then you'll obviously have to use something else to convert the im...

23 dagar ago | 0

Answered
How to extract data from a particular column of matrix?
Something like this should work: Y = A(20:3500,6);

24 dagar ago | 0

Answered
How can I multiply 2 signals?
Something like x = (-1 :.05 :1); % pay attention to scale and limits y = cos(2*pi*x).*exp(-5*x); % elementwise multiply with ....

25 dagar ago | 1

| accepted

Answered
How to remove narrow cavities and passages in a binary image
Simple morphological operations should suffice. Morphological closing removes background (zero-valued) features smaller than a ...

26 dagar ago | 2

Answered
How to do a cycle in the graph each time of plot
You can use mod() and simple masking to avoid the loop and conditional. K_t = 750; K_r = 250; b = 5; f_z = 0.1; theta =...

26 dagar ago | 1

Answered
How can I transform 'line' in Binary Image to function like y=x ? How can i find coordinates of line?
Raster Image Processing You can do this by just processing the raster image as has been already described, but you'll have to d...

26 dagar ago | 0

Answered
How can I iterate across the opposite diagonal?
You can also do: HM = fliplr(toeplitz([6 4 zeros(1,7)])) That said, it's unclear whether you're actually intending for the out...

26 dagar ago | 0

Answered
Create a plot with 2 left axes and 1 right axis
I don't know how it would be done with yyaxis (if possible) There are a number of old tools on the File Exchange that still wor...

27 dagar ago | 0

Answered
Evaluating maxima and minima of functions of two variables
How would you solve a minimization problem on paper? If you use the symbolic toolbox, it's basically the same. syms x y D...

27 dagar ago | 0

| accepted

Answered
Why image doesnt show correctly while reading a binary file?
The files are just literal text files with a .bin extension. The easy way to deal with that is just rename the file. If you wa...

27 dagar ago | 1

| accepted

Answered
To find Volume under Surface
Rearrange the implicit equation and observe symmetry and intersections to simplify the task. syms x y z0 = 0; z1 = x+y-1; ...

28 dagar ago | 0

| accepted

Answered
Inserting non zero element in diagonal position of a nonzero matrix
This isn't that much different than Benjamin's answer now that I look at it, but eh. I guess it's my own spin. This should wor...

28 dagar ago | 1

| accepted

Load more