Respondida
Anyone know how to use "image_add ()" command?
I don't know where image_add() or Image_subtract() came from. They're not part of MATLAB or anything that I can find on the Fil...

alrededor de 5 años hace | 0

Respondida
How to rectify the "Improper index matrix reference" error in my coding for two dimensional data extraction from MATLAB Figure?
A lot of graphics stuff changed between R2014a/b. When you run findobj() in the older versions, the result Extracted_data is a ...

alrededor de 5 años hace | 1

Respondida
Multiplying matrices with values ​​in polar form
It's been a long time since I did this, but here goes: % note that phasors in polar form are not scalar % a complex number in ...

alrededor de 5 años hace | 2

| aceptada

Respondida
Undefined function 'ind2rgb8' for input arguments of type 'uint8'
Do you have mapping toolbox in the newer version? Does anything show up if you test with which()? which ind2rgb8 If you don...

alrededor de 5 años hace | 1

| aceptada

Respondida
Regular expression: how to search for a sequence of one number alternated with 0s?
Well, I'm certainly not the one to ask about regex. I thought I had this nailed down, but had to resort to this to get it to wo...

alrededor de 5 años hace | 0

| aceptada

Respondida
Reconstruction of image from the vectorized overlapped blocks of an image
I don't know how your output is arranged. You have 63^2 vectorized blocks. If they are all columns in a flat 64x3969 array, ho...

alrededor de 5 años hace | 1

| aceptada

Respondida
How to create a user defined function that contain if else function. Can I create a user function from the line e line %user defined function
Well, you can certainly make it into a function: clearvars; clc; % the user is never told the meaning of what they're select...

alrededor de 5 años hace | 1

| aceptada

Respondida
Limit a CONTOURF plot under a line
Consider: numpoints = [1000 1000]; % [x y] % build boundary curve x = linspace(-2,2,numpoints(1)); y = 4*x-x.^3; % buil...

alrededor de 5 años hace | 0

Respondida
How to compare the computation time of two algorithms effectively on MATLAB?
You might want to use timeit() instead, or at least open it up and see what it's doing internally. It does a number of things t...

alrededor de 5 años hace | 0

Respondida
How can I find a certain shape within an image?
Is it necessary to use normxcorr? The content seems reasonably seperable by color. inpict = imread('crosswav.jpg'); mask =...

alrededor de 5 años hace | 1

| aceptada

Respondida
Change Color of Segmented object based on Solidity
I don't have a good example image, so I'll just use this: mask = rgb2gray(imread('sources/blobs.png'))>10; stats = regionp...

alrededor de 5 años hace | 0

| aceptada

Pregunta


How to programmatically find the number for the latest MATLAB release?
I'm looking for something similar to such a hypothetical option: >> version('-release') R2015b >> version('-latestrelease...

alrededor de 5 años hace | 1 respuesta | 0

1

respuesta

Respondida
how to create a sequence with percentage increments
Here's one way. n = 15; x0 = 3; inc = 0.1; x = ones(1,n-1)*(1+inc); x = cumprod([x0 x]) There are probably simpler ways ...

alrededor de 5 años hace | 0

Respondida
Discontinuities in imgaussfilt3 near integer values of sigma
This also happens for imgaussfilt() and others (e.g. using MIMT fkgen() and imfilter()). If you take a closer look, you'll noti...

alrededor de 5 años hace | 0

| aceptada

Respondida
I cannot save matlab editor, the .m file.
You might want to check what your locale settings are feature('locale') and see if any of this is of use: https://www.mathwor...

alrededor de 5 años hace | 0

Respondida
How to split one big matrix into several matrices?
Consider: A = rand(100E3,2048); C = num2cell(A,2); C = cellfun(@(x) reshape(x,32,32,2),C,'uniform',false);

alrededor de 5 años hace | 1

| aceptada

Respondida
3 errors in a script line - 11, 13, 28
T=1/get(input1,'freq'); input1 is a missing variable/object, so you'll have to figure that out. If this is is someone else's c...

alrededor de 5 años hace | 0

Pregunta


Is there any way to determine when a function was removed from MATLAB?
I was working on a tool that scrapes webdocs to determine the version when a given function was introduced to MATLAB -- but that...

alrededor de 5 años hace | 2 respuestas | 3

2

respuestas

Respondida
How to prevent plotted contents to spill outside of the axes lines
One would think that the 'clipping' property of the axes object would take care of that, but I guess not. Oof: https://www.m...

alrededor de 5 años hace | 1

Respondida
Angle between two azimuth, elevation vectors.
Consider: AzEl1 = [0 45]; AzEl2 = [45 0]; % put in vector form a = [[cosd(AzEl1(1)) sind(AzEl1(1))] * cosd(AzEl1(2)) sind(...

alrededor de 5 años hace | 0

| aceptada

Respondida
Implementing Filter on an Image but avoiding the corners
If you want to fill in the corner pixels like the 'replicate' edge treatment does with edges, you can do that by inpainting. Co...

alrededor de 5 años hace | 0

Pregunta


Is there a bug in imread() or imfinfo() with multiframe GIFs in R2021a/b?
Several months ago, I filed a bug report for this issue which causes imread to intentionally damage image content. https://www....

alrededor de 5 años hace | 1 respuesta | 2

1

respuesta

Respondida
I cannot understand why I'm getting the error in this code
Well I'm late to the party, but I was going to add that it seems like you're trying to accomodate something I don't understand h...

alrededor de 5 años hace | 0

Respondida
How do I change the colour in each sector depending on the angle?
I don't know about how to wrangle patch() to do it right. It probably can, but I don't have that much hair to spare. This is a...

alrededor de 5 años hace | 0

| aceptada

Respondida
Number of pixels while modifying freehand on a figure
Here is a very simple example inpict = imread('cameraman.tif'); % show image and make ROI imshow(inpict); R = drawfreehand...

alrededor de 5 años hace | 0

Respondida
i want to remove black color from my image and make the background transparent so that i can paste it on another image... can anyone help?
Let's start simple. Assume you have two single channel (I) images of the same class. % generate test images for foreground and...

alrededor de 5 años hace | 0

Respondida
Vector from character array
Something like this A = {'high','low','low'}; B = strcmp(A,'high') Bear in mind that this only tests whether elements of A co...

alrededor de 5 años hace | 1

| aceptada

Respondida
the absolute bleed edge fastest way to strip out bits from 4 bytes of hex
There's this. word_1 = 'DEAD'; word_2 = 'BEEF'; answer = hex2bin([word_1,word_2]); answer = bin2dec(answer(1:22)); Usin...

alrededor de 5 años hace | 0

| aceptada

Respondida
A chi-square distance or Euclidean distance?
By default, the distance metric used by pdist2() is the Euclidean distance. If you want to use chi-square distance, there's a...

alrededor de 5 años hace | 0

Respondida
binary vector to a signed int
I don't have the toolbox needed for hextobinaryvector(), but I assume the binary vector is just that. Given this solution: ht...

alrededor de 5 años hace | 0

| aceptada

Cargar más