Answered
extracting mean pixel value from an image
It seems to work for me. The figure in which the ROI object is created needs to be present and needs to contain only one image....

4 years ago | 0

Answered
How do I superimpose images using imfuse() while keeping colors?
The short answer is very simple. Don't use imfuse() for image composition. Imfuse() is a tool for visually comparing two image...

4 years ago | 0

Answered
Why is the waveform of torque for single phase induction motor sinusoidal in Simulink?
It's been years since I had to think about this, but off the top of my head, that seems correct. The stator in a three-phase in...

4 years ago | 0

Answered
Problem in getting proper output image format
The output of rgb2lab() is already of class double(). L is in the range of 0-100. Rescaling L to [0 255] and casting to uint8 ...

4 years ago | 0

Answered
How to output the Cascading image
Depends what you want to do with it. With a function name like op(), it's impossible to tell. If your goal is to just visual...

4 years ago | 0

Answered
extracting mean pixel value from an image
I was assuming that the green marks weren't going to be the ROI delimiters anymore, but if they still are, you can't use image g...

4 years ago | 0

Answered
i need to combined several blocks to one image
I suppose if I'm going to clean up the duplicate of this question, I should be willing to answer it to some degree. While there...

4 years ago | 0

Answered
Growing eye matrix as per the size of eye
There are a number of ways, but this is what I'd do: A = toeplitz([1 0 0 1 0 0 1 0 0],[1 0 0 0 0 0 0 0 0])

4 years ago | 1

Answered
How to create a crumpled (wrinkled) paper effect on an image?
The answer is fairly simple, but it depends what you expect. The basic concept isn't a MATLAB problem at all. Solving the prob...

4 years ago | 1

| accepted

Answered
Dumb mistakes we make with MATLAB.
I spent a moment today trying to figure out why outarray = logical(size(inarray)); % preallocate didn't create a logical array...

4 years ago | 0

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 0-by-0
RadiusFunc (and possibly LengthFunc) is an empty array. You'll have to find out which ones are empty and why they're empty, bec...

4 years ago | 0

| accepted

Answered
Filtering with regionprops and ismember
I cropped the image out of your screenshot, so the sizes are probably wrong, but this is just an example in concept. You appear...

4 years ago | 0

Answered
greek words in axis labels
Forgive the blind translation attempt, but wouldn't something like this work? hungerpct = 1:100; bph = (1:100).'.*[2 3] + [0...

4 years ago | 0

| accepted

Answered
Colormap- specific values for each heatmap value
You might try something like this: % some fake data z = 0.2*rand(10); % define parameters of new CT ctlength = 256; cbrea...

4 years ago | 0

Answered
Checking given point in circle
Depending on the context, there are probably more purpose-built tools, but you can do it in a very basic manner just the same. ...

4 years ago | 0

Answered
string for x label in a plot
You can make the tick labels whatever you want. They don't have to be a literal label of the tick locations. x = 1:10; y = si...

4 years ago | 2

Answered
How can I move a binary image to the center?
Without knowing how the object images were obtained, it's hard to say how to change the process. You should have the bounding b...

4 years ago | 0

Answered
How to create picture effects in MATLAB?
Steve's blog has some ideas for thinking outside the box with basic MATLAB/IPT tools, but for the most part there aren't first-p...

4 years ago | 1

Answered
Overlay graph with latest input
If by "latest input", you mean the text object, you can use text(). https://www.mathworks.com/help/matlab/ref/text.html http...

4 years ago | 0

Answered
How do I split a string using a only *single* whitespace delimiter so any multiple whitespaces are also "split"?
I'm totally not the one to ask for elegant regex, but there are always workarounds. thischar = 'Time Aero Inertial To...

4 years ago | 1

Answered
plot earth shadow(lighting?)
You can do a couple things. You can adjust the material properties to increase contrast (reduce ka, boost kd). See this docume...

4 years ago | 0

| accepted

Answered
difference of SSIM and multissim?
The documentation describes the differences: https://www.mathworks.com/help/images/ref/ssim.html https://www.mathworks.com/hel...

4 years ago | 0

Answered
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
I don't see anything that would cause that error, but there are other errors. clc; clf fstr = 'sin(x)'; %input('Fonksiyon de...

4 years ago | 0

Answered
Unevenly Map Data to an RGB Map?
If you want to take your colormap and shift it toward one end or the other for some reason, you might be able to do something li...

4 years ago | 0

Answered
Is it possible to go through the elements of an array without resorting to length in a for loop?
You could do something like this a = [1 2; 3 4]; for k = a(:).' % reshape a into a row vector if k>2 fprintf('%d...

4 years ago | 2

| accepted

Answered
How to order colors (RGB) in my own colorbar?
I think this is an interesting question. Being "interesting" doesn't mean that it's a problem with a unique solution though. A...

4 years ago | 1

Answered
Writing RMSE fomula in Matlab
Assuming that the inputs are of comparable scale and of floating-point class: rmse = sqrt(mean((A(:)-B(:)).^2))

4 years ago | 0

Answered
Line Plot with Highest value in the middle
You mean y = [0, 5, 0]; plot(y) If you mean something else, you'll have to elaborate.

4 years ago | 0

Answered
Locate and extract values from one array to another
Use ismember() or (more likely) ismembertol(). Without knowing what the data and references look like, I'll have to leave that ...

4 years ago | 1

| accepted

Answered
How can I create a binary mask?
Without having clear technical goals, I'm just going to assume that no technical requirements exist for shape or density. I'm g...

4 years ago | 0

| accepted

Load more