Answered
how to make a mini photoshop
This problem happens because both functions start over from the source image every time they are called. imbright = double(hand...

5 years ago | 0

Answered
How the L C H Values Could Be Seen as a value on an Image
I know this is ancient, but this is almost certainly MIMT, judging by that garbage error handling I used to use. Might as well ...

5 years ago | 0

Answered
Opening and reading a given frame from a .tiff stack to then show on the screen
This is why your images come out white. imgs(:,:,jj) = double(imread(fname, jj, 'Info', info)); The image data in a file is ...

5 years ago | 1

| accepted

Answered
How do I change an image into 2 main colors?
Not knowing how the FG is presented, it's anybody's guess how it should be processed. I would assume that the markers are color...

5 years ago | 0

Answered
zero padding on several images
The sensible answers have already been given. I'll just add the MIMT way of doing this. instack = mimread('sources/birds*.jpg'...

5 years ago | 0

| accepted

Answered
Maximizing X & Y
Okay, well that still leaves the question of what we're actually trying to maximize. Let's look at a graph of what's going on: ...

5 years ago | 0

Answered
Unrecognized function or variable 'steg_lsb_enc'.
I don't know of any functions called steg_lsb_enc(). I don't find anything in docs or FEX either. I'm sure I could whip up an ...

5 years ago | 0

Answered
Can you guys help write a code for my machine problem
Since you've already demonstrated that you have actually made an (almost) working solution of your own, I'll offer this as a mor...

5 years ago | 0

| accepted

Answered
while implementing the above code, getting error at line 8 & 10 = error is the value assigned to variable might be unsed?
3 things: 1: It's not an error, just a warning for guidance. It doesn't prevent the code from being run. 2: It's correct. e...

5 years ago | 0

Answered
How can I gradient the legend color in MATLAB?
I don't know that there's a good way to do this, but there's probably a better way than the garbage I came up with. %hl = leg...

5 years ago | 0

Answered
Plotting y=sin x in 3d
What did you get when you ran it? Whether it's "right" depends on what the goal is. % this plots the surface over both x and y...

5 years ago | 0

| accepted

Answered
Help indexing: How to index at the interfaces of cells and not the cells
Just interpolate. x = 0:10; y = x.^2 xhalf = 0.5:9.5; yhalf = interp1(x,y,xhalf,'linear') plot(x,y,'rd',xhalf,yhalf,'bo...

5 years ago | 0

Answered
Which function should I use to fill an ouput matrix based on information in two other matrices
This is probably not the best way to do this, but here goes. idx = [1 2 1; 5 4 4] D = [12 16 10; 13 16 18; 12 11 14; 18 19 22;...

5 years ago | 0

Answered
How to shade plot with 0, 1 valued signal
Something like this: x = [0 1 1 2 2 3 4 4 5 5 6]; y = [0 0 1 1 0 0 0 1 1 0 0]; area(x,y,'facecolor','m','facealpha',0.2,'line...

5 years ago | 0

Answered
Finding the source code of the building function
Some functions are implemented as m-code and can simply be opened open bwmorph and some rely on internal and private functions...

5 years ago | 1

Answered
I need to make a program that has you put in a number 1-10 and tells you how many tries it took you to do so
Start with something like this: range = [1 10]; mynumber = 0; tries = 0; while % some sort of condition(s) mynumber = in...

5 years ago | 0

Answered
turn a sentence into matrix of words
Depends whether you want to do this with strings or character arrays: sentence = "this is a string, not a character array"; wo...

5 years ago | 0

Answered
count of points in particular region from graph
Look at histcounts2(): % make some scattered points npoints = 1000; x = randn(npoints,1)*500; y = randn(npoints,1)*300; %...

5 years ago | 0

| accepted

Answered
How to make operation row by row
Orient the vectors accordingly and use implicit vector expansion. For example: % these are all column vectors % A and C have ...

5 years ago | 1

| accepted

Answered
HELP, i dont know how to write code for this
Use varargin, isscalar, ismatrix, etc. This should get you started. function out = supercoolfunction(varargin) switch numel...

5 years ago | 0

Answered
How can I plot a line on a plane?
There are probably a bunch of ways to do this, but I did this: % plot range xrange = [-5 5]; yrange = [-5 5]; % I choose t...

5 years ago | 1

Answered
matrix show , grain boundaries
Your prior questions suggest that you already have an image to start with. A crude way to add lines to it is to just use edge f...

5 years ago | 0

| accepted

Answered
Assigning multiple variables a single legend
There are a number of ways to do this, but you should just be able to pick one object from each group and use it. The trick is ...

5 years ago | 1

Answered
Please help me in understanding these code snippets
1: This seems like a convoluted way of finding the maximum of all object areas. That whole thing can be replaced with [maxa i...

5 years ago | 1

| accepted

Answered
Create a simple rectangular image
If you're describing a white image with a black border, then I'll offer a different method: testpict = padarray(ones(40,60),[30...

5 years ago | 0

Answered
Code keeps running without any error but no result ,please help!
If your code runs and doesn't indicate what it's doing, make it tell you what it's doing. For instance, store all the values of...

5 years ago | 0

Answered
find previous value in column before specific set value and delete all others
Something like this maybe: load('example.mat') idx = find(example(:,2)>120); idx = sort([idx; idx-1]); valuesiwant = examp...

5 years ago | 0

Answered
how can ı multiplication two sine wave
S1,S2 are vectors. This is matrix multiplication: A = S1*S2; This is elementwise multiplication: A = S1.*S2; You need the l...

5 years ago | 1

Answered
Anyone knows why 4.4:.1:5 returns 4.400000000000000 ... 4.600000000000001 ... 5.000000000000000?
Welcome to the wonderful world of floating point numbers 4.4 + 2*(5-4.4)/6 ans = 4.600000000000001 >> (44 + 2*(50-44)/6)/...

5 years ago | 1

Answered
Input error checking using a while loop
y = input('Please type in the selected accuracy (must be between .1 and .01): '); while isempty(y) || y>0.1 || y<0.01 disp('S...

5 years ago | 1

| accepted

Load more