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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 3

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

Respondida
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); ...

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

Respondida
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];...

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

Cargar más