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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

Beantwortet
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:/...

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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) == ...

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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,:)

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Mehr laden