Respondida
This the main file for hill cipher
uhh okay? f = 1; But if you really want my advice, asking the user to input a bunch of things one element at a time using in...

alrededor de 5 años hace | 0

Pregunta


How to find one's own comments on File Exchange
I recall being able to see a list of my own comments and comments i've received on my FEX submissions. Given that FEX comments ...

alrededor de 5 años hace | 0 respuestas | 1

0

respuestas

Respondida
Unable to draw just the boundary of an image
Well, you're loading a grayscale image subject to destructive compression as a jpg file. At no point do you explicitly threshol...

alrededor de 5 años hace | 0

| aceptada

Respondida
Improve the speed of nested for loops through vectorization or similar methods
One big speed improvement you can do is to move the scalar multiplication of Dz outside the loop, but if you don't use a loop, i...

alrededor de 5 años hace | 1

| aceptada

Respondida
Solving for different thetas in an equation.
If you have a sufficient amount of information to describe the number of variables, then yes. If I make some assumptions: % as...

alrededor de 5 años hace | 0

Respondida
Cell components perpendicular division
Something like: A = num2cell(reshape(1:16,[4 4])) % example array B = cellfun(@rdivide,A,circshift(A,[-1 -1])) % output To de...

alrededor de 5 años hace | 2

| aceptada

Respondida
How do I find the phase of any point in the graph below
Considering that there's only one boundary of interest, it's fairly simple. x=0:10:91; y=0.01*x.^2; xt=[30 70]; yt=[60 2...

alrededor de 5 años hace | 0

| aceptada

Respondida
contourf without isoline but with label
Set linecolor to 'flat' [C,h] = contourf(peaks(20),10); set(h,'LineColor','flat') clabel(C,h,'FontWeight','bold','FontSize',5...

alrededor de 5 años hace | 2

| aceptada

Pregunta


Inconsistent interpretation of tabs in the forum post editor
To preface, I don't even know if this problem can be replicated by others. Across various Firefox-based browsers, the post edit...

alrededor de 5 años hace | 0 respuestas | 1

0

respuestas

Respondida
I need to add a colorbar to an indexed image showing by imshow()
It seems to me that what you're trying to do is just scale the tick labels and not actually scale the mapping (which is what you...

alrededor de 5 años hace | 0

| aceptada

Respondida
how to send pcolor contour to back when updating contour z value?
If you have the handle of the object which represents the lines, you should be able to reorder the stack: uistack(lineplothandl...

alrededor de 5 años hace | 0

| aceptada

Respondida
How can I add text to an image and make the text become part of the image within MATLAB?
Doing display capture seems like a poor workaround. The suggested method will fail for any practically large images. A reduced...

alrededor de 5 años hace | 1

Respondida
How do I multiples of a number in an array
Depends how far you want to go with it. You could leverage implicit array expansion to do it in a way that might make a more ge...

alrededor de 5 años hace | 0

| aceptada

Respondida
Change a specific color in an image to another one
EDIT 5/2022: I've posted a number of variations of answers on this same question. For a more comprehensive answer of this same ...

alrededor de 5 años hace | 0

| aceptada

Respondida
Superimpose Image 1 onto bottom right of Image 2
disp() is a function that takes only one argument, yet you're feeding it indices like it's an array. The assignment will try to...

alrededor de 5 años hace | 0

| aceptada

Respondida
is there are a way to take the result of this figure with out input data ?
EDIT: I know this is a dead question, but I'm using this as a place for a reference answer. I've posted similar answers befor...

alrededor de 5 años hace | 1

Respondida
How do I plot a function with a variable that has multiple values?
v = [0 0.5 1]; c = [1 1 1]*0.5; subplot(2,1,1) plot(v,c,'x-') subplot(2,1,2) plot(c,v,'x-')

alrededor de 5 años hace | 0

Respondida
Switch skipping over cases in new loop
That's not how switch-case statements work. The case is only entered when the switch expression (pp is numeric) is equal to the...

alrededor de 5 años hace | 1

Respondida
Calculate distances from region props centroid data to edge of binary shape
Depends on how your objects are shaped, but this should be a start: inpict = rgb2gray(imread('blobs.png'))>32; S = regionpro...

alrededor de 5 años hace | 0

Respondida
How to find the index of any maximum matrix?
s = [10 10]; x = randi(100,s) [~,idx] = max(x(:)) % this gets the linear index [row col] = ind2sub(s,idx) % if you want subs...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to remove this small round shaped error highlighted in the image below.
Again, this is subject to questions, and is based on a modified screenshot. % load the image and fix it ip = imread('image.p...

alrededor de 5 años hace | 0

Respondida
How to specify different colors to multiple shape inserts on an image?
Again, I can't test this because I don't have CVT, but as I understand it, insertShape() should be able to accept multiple color...

alrededor de 5 años hace | 0

Respondida
How to insert multiple circles on selected points on an image?
I don't have CVT, so I can't test this, but you're never saving the output of shape. Each time, you're starting from the source...

alrededor de 5 años hace | 1

Respondida
how can i detect edges
You have some script labeled 'edge.m' that's overloading the function you're trying to use. Use unique names for files and vari...

alrededor de 5 años hace | 0

Respondida
How to create a new variable within each run in a for loop?
Arrays are indexable. Scalars and variable names aren't. If you find yourself embedding ordinal information in the variable na...

alrededor de 5 años hace | 0

| aceptada

Respondida
Interpolate between arrays depending on a variable
I don't know why you're using a cell array for this unless you just really like making everything harder. Just use a numeric ar...

alrededor de 5 años hace | 1

| aceptada

Respondida
how to create histogram
density = randn(100); h = histogram(density); h.FaceColor = 'y'; % if you want to set other properties, take a look get(h) ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to generate a random number between 0 and 180
Yes. length = 180; random_location = randi([0 length],1E6,1); [min(random_location) max(random_location)] histogram(random_l...

alrededor de 5 años hace | 0

Respondida
legend font style, f ​​and | are very close
If picking a font with a better spacing behavior isn't an option, you can always try to pad it using something other than a regu...

alrededor de 5 años hace | 1

| aceptada

Respondida
How to convert "cell array" to "character array"
It's kind of hard to tell what exactly you want, since your example isn't really proper syntax. If you just have a scalar cell ...

alrededor de 5 años hace | 0

Cargar más