A répondu
Segmentation not working on Dicom images
I'm not sure what you mean by the image looks greyish. It looks like the masked blob in the middle has the full dynamic range. ...

10 jours il y a | 0

A répondu
I want to build the square wave: build a 6 subplot figure to show the time domain, and use respectively 1, 3, 5, 10, 50, 500 frequencies.How can i achieve this?
Start with this: allFreqs = [1, 3, 5, 10, 50, 500]; for k = 1 : length(allFreqs) thisFreq = allFreqs(k); subplot(len...

10 jours il y a | 0

| A accepté

A répondu
I am a beginner and this is just a short question. How can I input the matrice x=[-1 0 5 10] into an if statement and use the output to calculate Y?
You need to loop over all x if you have x in a vector like that x = [-1, 0, 5, 10]; for k = 1 : numel(x) if x(k) > 0 && x(k)...

10 jours il y a | 0

| A accepté

A répondu
i need code in matlab
See attached function. x = [-1; -8; -6.5]; y = [3.2; 4; -9.3]; plot(x, y, 'b.', 'MarkerSize', 50); % Find the center and rad...

10 jours il y a | 0

A répondu
How to use adapthisteq on an AVI video
Yes good idea but you have a number of errors in there. Mainly that your histogram equalization is not inside your loop over al...

10 jours il y a | 1

| A accepté

A répondu
i need code in matlab
You didn't say what you wanted to do. I'll assume you want to draw the circles on a graph. Here is the code: x = [-1; -8; -6....

10 jours il y a | 1

| A accepté

A répondu
How to wrap an image/points to a 3d surface?
Maybe what you want is the attached demo.

10 jours il y a | 0

A répondu
I am a beginner and this is just a short question. How can I input the matrice x=[-1 0 5 10] into an if statement and use the output to calculate Y?
Hint: x = input( if x > 0 && x <= 10 %code else %code end I'm confident you will be able to figure out the last f...

10 jours il y a | 0

A répondu
How to create these shapes in Matlab
Didn't I give you everything you need in your duplicate post: https://www.mathworks.com/matlabcentral/answers/1858608-create-a-...

10 jours il y a | 1

A répondu
Create a binary image from a 2-dimensional binary [0 1] matrix
Pretty trivial. First define the number of rows and columns in the image. Then define the x and y coordinates for one rectangl...

11 jours il y a | 1

| A accepté

A répondu
can I download 2022b?
See the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_an_error_message,_does...

11 jours il y a | 0

A répondu
Measurement of properties from Tiff image
Here's a start: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of ...

11 jours il y a | 0

A répondu
I wanna make a .mat file
For example you want to make a mat file called 'answers.mat' containing variables var1 and var2: save('answers.mat', 'var1', 'v...

11 jours il y a | 0

A répondu
Basic 'for loop' problem: it stops after several iterations
Because b is not an perfect integer. It has a small fractional part. This should have been taught in your linear algebra class...

11 jours il y a | 0

A répondu
Index in position 1 is invalid. Array indices must be positive integers or logical values.
You swapped x and y. Remember x is columns which is the second index, not the first index of a matrix. Matrixes are references...

12 jours il y a | 0

| A accepté

A répondu
minimum distance between 2 objects
If xy is an N by 2 array of (x,y) coordinates, then (untested) allDistances = pdist2(xy1, xy2); minDistance = min(allDistances...

12 jours il y a | 0

A répondu
how to make rectangle in circle?
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle? Then plot it with plot and then for each x and y val...

13 jours il y a | 0

A répondu
How can I by using GUI to track either red or blue from a picture?
See attached example where I track a green Sharpie. Adapt as needed for other colors that you want to track.

13 jours il y a | 0

A répondu
how to find out that the length is odd or even
Nodd = rem(n, 2)

13 jours il y a | 0

A répondu
Brewster Angle in Matlab
The equation is given in https://en.wikipedia.org/wiki/Brewster%27s_angle theta = atand(n2/n1) It's about as simple as it get...

13 jours il y a | 0

A répondu
MATLAB crashed when running the .mexw64 file
The last file it mentions before the final gasp and death is "D:\matlab_files\yuhengv2\LLS-NR-pattern\11_demodulation\demod.mexw...

14 jours il y a | 0

A répondu
Issue with compiled app when located in Programs folder
That's correct. It's not MATLAB -- that's a Windows rule. Windows does not let you store any new files under the C:\program Fi...

14 jours il y a | 0

A répondu
How to add every other number in a row?
Explain again how you want 5. Because 3 + 2 + 1 = 6, not 5. And how is 4+3+2+1 adding only every other element? It looks like...

14 jours il y a | 0

| A accepté

Poll


I am (pick closest or most time spent in)

14 jours il y a | 1706 votes | 0 comments

A répondu
ERROR TO OPEN EDITOR. Why is this happening?
Try the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_message_when_I_try_to_run_...

14 jours il y a | 0

A répondu
How do I correct my colors in my indexed image displayed with image() function?
You aren't calling colormap function - it's commented out and was appearing before you displayed anything. This works fine: te...

14 jours il y a | 0

| A accepté

A répondu
Editing images using MATLAB
OK, I sense you're having some trouble with this so I did it for you. % Demo by Image Analyst % Initialization Steps. clc; ...

14 jours il y a | 1

| A accepté

A répondu
Editing images using MATLAB
I assume you tried to adapt the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files? and must have r...

14 jours il y a | 0

A répondu
for loop function help
help for help if MATLAB Academy - Free 2 hour training

14 jours il y a | 0

| A accepté

A répondu
Find the perimeter of the shaded region-- the logical "1."
You can use bwboundaries to get perimeter points. But if it's the length of the perimeter that is wanted regionprops is the way...

14 jours il y a | 0

Charger plus