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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 3

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 1

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 0

| akzeptiert

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

fast 5 Jahre vor | 0

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

fast 5 Jahre vor | 1

| akzeptiert

Mehr laden