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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 1

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

más de 5 años hace | 1

| aceptada

Cargar más