Answered
whats wrong in this?
Use commas subplot(2,1,1) instead of subplot(2.1,1)

4 years ago | 0

Answered
Error using 'cbfreeze' Matlab R2014b
Colorbar objects are fundamentally different than they were prior to R2014b. They used to essentially be axes objects. Those p...

4 years ago | 0

Answered
Finding intensity of region inside a circle from image
Something like this: A = rgb2gray(imread('Bead_pic.png')); mask = A<100; mask = imfill(mask,'holes') & ~mask; % show the t...

4 years ago | 1

| accepted

Answered
How I can read image with PPM format without imread and design PPM reader ?
Again, the documentation http://netpbm.sourceforge.net/doc/pgm.html As an example for this one image, consider the following...

4 years ago | 3

| accepted

Answered
Why do I get giant values when I plug in very small decimal values in symbolic algebra?
When doing symbolic operations, it's going to always try to give exact representations of numbers. Ratios of integers are exact...

4 years ago | 1

| accepted

Answered
how to stack a 2D matrix form in 3D form?
Something like this A = randi(9,[6 3 6]); U = 3:5; % do it with a loop M = zeros(size(A,1),size(A,2),numel(U)); for k = 1...

4 years ago | 0

| accepted

Answered
Plot surface of z=(x^2+y^2)^m for different values of m
Almost there r=linspace(0,1,21); theta=linspace(0,2*pi,63); [R,THETA]=meshgrid(r,theta); X=R.*cos(THETA); Y=R.*sin(THE...

4 years ago | 0

| accepted

Answered
How to plot histogram using matrix?
If I'm understanding the problem correctly, you're trying to plot a series of histograms, where column 1 is merely ordinal infor...

4 years ago | 0

| accepted

Answered
Order a matrix A 4x4 in another matrix B 6x6
Something like this: G = zeros(6); R1 = [0.1680 0.8400 -1.6800 0.8400 0.8400 5.6000 0.8400 2.8000 -...

4 years ago | 0

Answered
how to manually add a legend?
The suggestions I gave were in order of decreasing quality. Option #3 was intended to appear impractical enough that option #1 ...

4 years ago | 1

| accepted

Answered
How to set background image for changing plot without using hold on/off?
I suppose this is one way. I'm sure there are others. imshow('peppers.png'); hold on % use hold for i = 1:5 % placeholder...

4 years ago | 1

| accepted

Answered
Image segmentation but 'edge' does not work
The image is actually a 3-channel (RGB) image. You can flatten it: lungct = imread('lungCT.png'); lungct = rgb2gray(lungct); ...

4 years ago | 0

Answered
Cells and Matrix division
I'm still assuming you're using cell arrays, since that's the only way that the description makes sense. I'm sure someone c...

4 years ago | 0

Answered
error: eval: TRY must be a string
Why won't something like this work? f = @(x) 0.1*x - sin(2 * x) + 0.25; for i = 1:3 [a, b] = fgraf(f, -3, 3); z = ...

4 years ago | 0

Answered
Need help in the Color image fusion based on Pixel Average method
Let's start with this: rgbImage=imread('greens.jpg'); % Separate image into RGB [r g b] = imsplit(rgbImage); % Apply CLAHE...

4 years ago | 0

| accepted

Answered
Write code for a given plot
Something like this % points don't need to be any more dense than the marker spacing % so we really only need one set x = lin...

4 years ago | 0

| accepted

Answered
How to copy all cell array row to other cell row
Something like this A = [1 2;3 4;5 6; 7 8; 9 10; 11 12]; Acell = num2cell(A,2); % don't need the loop B = nchoosek(Acell,2)...

4 years ago | 1

| accepted

Answered
when i run my code i accept an Error: Not enough input arguments.
You need to actually call your function with input arguments. If no arguments are provided, an error will occur on the first li...

4 years ago | 0

Answered
adding random noise to an image for N times
Look at something like imnoise(). Decide what type of noise you need. Apply the noise in a loop. In all likelihood, the loop...

4 years ago | 0

Answered
For Loop Only Working with Specified Value Range "''index exceeds number of array elements""
Don't need the loop g= 9.81;%Gravity mc= 13;%Craft mass ml= 50;%Load mass m= mc+ml;%Total load ws= 10.9118;%Wingspan A= 16...

4 years ago | 0

| accepted

Answered
How can i create a long matrix?
Something like N = 20; A = [zeros(20,1) (0:1.5:(N-1)*1.5).']

4 years ago | 0

Answered
Convert negative and out of defined range data to NaN
You should be able to do something like this: lo = [0.01 2.4 192 15 4 3 140 0 1]; hi = [1.4996 17.1 238 114 11 34 180 100 16];...

4 years ago | 1

| accepted

Answered
converting 3D double matrix to char matrix
You can do this as a cell array of chars, or you can do it with an actual char array if you really must. Another option would b...

4 years ago | 1

| accepted

Answered
set the quality of GIF
GIF has no "quality" parameter. For the most part, you have three choices: Make the geometry smaller. Make the color table sh...

4 years ago | 0

| accepted

Answered
FIll contour of a binary matrix
You could do this by finding neighboring points and drawing lines between each pair like this example: https://www.mathworks.co...

4 years ago | 0

| accepted

Answered
Image processing of spray development and flame propagation using crop and background subtraction
There are image registration tools you can use, but if you just want something simple and interactive, consider the following ex...

4 years ago | 0

| accepted

Answered
how calculate difference 5 adjacent pixels?
Here. This implements a sliding-window filter based on your interpretation of what "find the difference of a particular with it...

4 years ago | 0

Answered
Function FLOAT in FORTRAN to Matlab
Unless I'm mistaken, float() would be equivalent to single(); dble() would be equivalent to double().

4 years ago | 0

| accepted

Answered
HSV heatmap from RGB image
If all you want is to apply a colormap to a monochrome image, then: A = imread('cameraman.tif'); imshow(A,[]); colormap(hsv(2...

4 years ago | 0

Answered
How to make colormaps like the attached colorbar?
If you just want the colormap used in that image, this is it. A = imread('colorbarimage.png'); np = 37; % number of points ...

4 years ago | 1

| accepted

Load more