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

5 years ago | 0

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

5 years ago | 1

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

5 years ago | 2

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

Question


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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

Answered
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);

5 years ago | 1

| accepted

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

5 years ago | 0

Question


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

5 years ago | 2 answers | 3

2

answers

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

5 years ago | 1

Answered
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(...

5 years ago | 0

| accepted

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

5 years ago | 0

Question


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

5 years ago | 1 answer | 2

1

answer

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

Load more