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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

Respondida
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(:...

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 2

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

Cargar más