Respondida
I need help clarifying this part of the code
I'm going to assume that the intent is to simplify the operations and that X and Y are numeric column vectors whose values may n...

más de 4 años hace | 0

Respondida
Thinning: a sequence of four structuring elements, b set A, c to k thinning by each of the structuring elements, l result after convergence, m conversion to m connectivity
Let's assume that the image is confusingly backwards and that black is true and white is false. This is what the existing tools...

más de 4 años hace | 0

Respondida
One command to extract all the data
Just permute the array dimensions. sla = cat(3,(1:10).',(11:20).',(21:30).',(31:40).'); % smaller example array size(sla) % 4 ...

más de 4 años hace | 0

| aceptada

Respondida
Merging two images with background
This should be a start fg = imread('bball.jpg'); bg = imread('lights.jpg'); % resize fg fg = imresize(fg,0.5); sfg = size...

más de 4 años hace | 0

| aceptada

Respondida
Grouping minute data by day and assigning to a variable
I never really do much with datetime objects, so I'm sure that there are better ways. This is at least a start. This should gr...

más de 4 años hace | 0

Respondida
Create colormap and set it for a plot3(x,y,z,colormap_value)
That should be simple enough. Since you're plotting markers only, just use scatter3(). n = 50; t = linspace(0,pi,n); x = cos...

más de 4 años hace | 0

Respondida
which imshow is true?
Tools like imshow() and imwrite() expect image data to be scaled according to class-dependent limits. For floating-point image ...

más de 4 años hace | 0

| aceptada

Respondida
mean filter special matrix apply to image. Salt and pepper noise
Normalize the filter sum and apply it with imfilter(). originalimg = imread('coins.png'); noisyimg = imnoise(originalimg,'salt...

más de 4 años hace | 0

Respondida
Preserve the label information when extracing boundaries from label matrix
You can do something like this: A = imread('blobs.png'); L = bwlabel(A); B = L.*boundarymask(L); % multiply [min(L(:)) m...

más de 4 años hace | 0

Respondida
Hello everyone , how can i remove the noise in the image without having effect on my RIO?
Here's a start. There's more that could be done, but don't assume this is universally applicable. A = rgb2gray(imread('https:/...

más de 4 años hace | 0

Respondida
Reading list of words for keywords and indexing those to an array
For example, consider the spreadsheet with the following cursory amount of example data. Let's say you have some current/temper...

más de 4 años hace | 1

| aceptada

Respondida
Problem with .tif images display in matlab
When displaying images, imshow(), etc. expect the data to be within a certain range. For floating point data, black is 0, white...

más de 4 años hace | 1

| aceptada

Respondida
check intensity of the pixel last 10 pixel values of an image
This could be a start. It would probably be faster to do it with cell arrays, but the text suggests doing it with a simple stac...

más de 4 años hace | 0

Respondida
Combination of two colors to form a new color entirely using " IF-ELSEIF-ELSE-END" statements
Something like this should be a start: colornames = {'red','green','blue'}; % i assume this order % placeholder for the list...

más de 4 años hace | 0

Respondida
How to plot number of a matrix with colorcode?
You can use pcolor() A = xlsread('Book1.xlsx'); w = 100; h = pcolor(1:w,A(:,1),repmat(A(:,2),[1 w])); set(h,'edgecolor','n...

más de 4 años hace | 0

| aceptada

Respondida
How to plot number of a matrix with colorcode?
Here's my latest guess: A = xlsread('Book1.xlsx'); uv = unique(A(:,2)); hold on for k = 1:numel(uv) mask = A(:,2) == ...

más de 4 años hace | 0

Respondida
color pixels in image
As @Benjamin noted, your example binarized images are mismatched in size and are actually RGB images. I'm going to guess that th...

más de 4 años hace | 0

Respondida
How to generate Reddish, Greenish, Blueish, and whiteish images using color images. I'm using this function. If its wrong please change it.
There might be many ways to make a "reddish" version of an image. Consider the examples: % i'm doing this in double for simpli...

más de 4 años hace | 0

Respondida
Change the markers color in the figure after plotting
This should be a start load('taylor_data.mat'); % Calculate statistics for Taylor diagram taylor_stats1 = taylor_statistics...

más de 4 años hace | 1

| aceptada

Respondida
I'm trying to write a script that takes an array of angles and runs them through a function but it only outputs a single answer rather than an answer for each angle.
Something like this. Use elementwise operations instead of matrix operations. %Given Theta = 5:1:85; %This is the input an...

más de 4 años hace | 0

| aceptada

Respondida
How to index with a changing index
You can try something like this: a = 1; b = 2; c = 3; A = toeplitz([a 0 0 0 0 0 0],[a b c 0 0 0 0]); A = A(1:end-2,:)

más de 4 años hace | 0

Respondida
How can I form a matrix of all possible values of three variables?
This is what I did off the top of my head v = [0.1 0.5 0.9]; k = 3; combs = unique(nchoosek(repmat(v,[1 k]),k),'rows') Thi...

más de 4 años hace | 0

| aceptada

Respondida
Maximum arrays of a matrix
If all you need to work on is a numeric vector, then W = [3 5 4 6 7 8 66 444 33 23 4]; Wmx = maxk(W,5) % R2017b or newer Note...

más de 4 años hace | 0

| aceptada

Respondida
plots are not displaying with on double y-axis graph
Something like this: t = 1:10; P_sp = rand(1,10); P = rand(1,10); L_sp = rand(1,10); L = rand(1,10); hold on; % <-- this...

más de 4 años hace | 1

| aceptada

Respondida
.PFM format in matlab
Imread does not support PFM. The HDR toolbox appears to have a utility to read PFM files: https://www.mathworks.com/matlabcent...

más de 4 años hace | 0

| aceptada

Respondida
How to get the original matrix back?
This should work at least for even sized arrays. I'm sure there are other ways. s = 8; % must be even A = reshape (1:s^2 ,s,s...

más de 4 años hace | 1

| aceptada

Respondida
Write a well tabulated txt file
As @Benjamin suggests, you can use fixed field widths in your output. dataset_lin=importdata('dataset_lin.mat'); stepsize0...

más de 4 años hace | 0

Respondida
how to trace all the coordinates on the graph drawn by mouse pointer.
It depends what you mean by "drawn with the mouse". What are you using to draw with the mouse? If you have IPT, you can use im...

más de 4 años hace | 0

Respondida
Making an animation of pixels of same value appear in an image
Don't do this. Displays are for viewing. You're basically taking a screenshot of the image. If you want to save an image, jus...

más de 4 años hace | 0

Respondida
How to denoise an image
This isn't a median filter. It's an average filter, and it's working on some arbitrary vectorized section of the image. Applyi...

más de 4 años hace | 0

| aceptada

Cargar más