답변 있음
How to construct a 3x9 matrix E from a 3x3x3 matrix D, where D(x,y,:) is the column of E?
A = [1 2 3; 4 5 6; 7 8 9]; B = [11 22 33; 44 55 66; 77 88 99]; C = [111 222 333; 444 555 666; 777 888 999]; D = cat(3,A,B,C) ...

9일 전 | 0

답변 있음
Large binned matrix reshape
Wouldn't it just be % Vertically stack the "10 different matrices" that the user has: allBins = vertcat(bin1, bin2, bin3, bin4...

9일 전 | 0

답변 있음
HOW TO REACTIVATE MY INSTALLATION---somehow got wrong user name
Call them on the phone NOW, or else you will be down the whole weekend. Call 1-508-647-7000. We can't do anything for you here...

9일 전 | 0

답변 있음
How to extract region of Interest of gray Image?
I already answered this here: https://www.mathworks.com/matlabcentral/answers/892157-how-i-could-detect-the-bottom-breast-bound...

10일 전 | 0

| 수락됨

답변 있음
HOW TO CHANGE BINARY IMAGES TO 3D ARRAY (CONVERT TO 3D DIMENSION)
If you want, just consider your 256x256 image as having a thickness of 2.332 millimeters or centimeters or whatever. There is n...

10일 전 | 0

답변 있음
Recalculate binary line local orientation
You don't need that. For example 170 degrees for a line is the same as -10 degrees. If it makes you feel better, just randomly...

10일 전 | 0

답변 있음
how do i change the size of the image
You're passing in a gray scale image when it wants a color image. When you resized them you also needed to convert them to colo...

10일 전 | 0

답변 있음
how i can get the profile of pixel value in dicom
Do you mean dicom? As in from a .DCM image file? Did you try using improfile()?

10일 전 | 0

답변 있음
How can I design a correlator to detect the character ‘G’ from the google image?
If you know the G is there, you can get a mask for the G letter with the following code, which assumes the G will be the leftmos...

10일 전 | 0

| 수락됨

답변 있음
Trying to get S(100) value several times
Perhaps you wanted to get a new random set of y values at each experiment (iteration) like this: % Initialization steps. clc; ...

10일 전 | 0

답변 있음
How to crop an image based on a centre point which I (user) define(s)?
Try this: % Demo by Image Analyst. clc; % Clear the command window. close all; % Close all figures (except those of imtoo...

10일 전 | 0

답변 있음
for loop in file
I answered this in your duplicate question. You need to sum up the output of ncread() into a variable, then after the loop divi...

11일 전 | 0

| 수락됨

답변 있음
How do I cropped the image once I have 2 horizontal lines detected?
Try indexing/masking: topRow = min(min_y_line(:,2)) bottomRow = max(max_y_line(:,2)) croppedImage = grayscale(topRow:bottomRo...

11일 전 | 1

| 수락됨

답변 있음
How can I design a correlator to detect the character ‘G’ from the google image?
If you have the G as a template, you can use normalized cross correlation with the function normxcorr2(). See attached example....

11일 전 | 0

답변 있음
Accessing multiple folders and extracting specific image files
See the FAQ for the answer to that pllus lots of other frequent questions: https://matlab.fandom.com/wiki/FAQ#How_can_I_process...

11일 전 | 0

답변 있음
how can i get all i for loop. the output only give me the last iterations. below are my coding.
There is no "i" in the code that I noticed. Which is good because we don't recommend using i as a variable since i is the imagi...

11일 전 | 0

답변 있음
Error in saving plot as PNG?
If you have R2020, try exportgraphics() instead of saveas(). And you can also use isfolder(). Replace if ~exist(outdir, 'dir'...

11일 전 | 0

| 수락됨

답변 있음
Output vector from structure
Try this: vec = [driver.status]

11일 전 | 0

답변 있음
How to apply a Color Thresholder function in Image Batch Processor to get masked RGB Images instead of binary ones?
You need to call it in a loop over all your images, like folder = pwd; % Whatever. filePattern = fullfile(folder, '*.png'); f...

11일 전 | 1

| 수락됨

답변 있음
MATLAB CODE FOR FOLLOWING?
How do I get help on homework questions on MATLAB Answers? - MATLAB Answers - MATLAB Central

11일 전 | 0

답변 있음
How can I remove red rectangles from the image or convert the red rectangle color in the image to white?
Merve, you can use the color thresholder to detect the green line, which appears to be your real question (not how to find red r...

11일 전 | 0

답변 있음
How to find second largest value and its index in an array?
charu, did you try sorting and using find()? We also need to know your definition of "second largest". % What is the second la...

11일 전 | 0

답변 있음
Calculating the error between true point and interpolation
Unfortunately you forgot to attach "thicknesses.dat" so we can't run your code. Why can't you simply say differences = spline_...

11일 전 | 0

| 수락됨

답변 있음
help with MATLAB battleship program
You need a function that's called BuildBoard() or something. Then in there call a function called PlaceShip() the required numb...

11일 전 | 0

답변 있음
Curve Fitting Using External Function
Did you try XYFit=fittype(@MyFitFunction(a,X),..........................

11일 전 | 0

답변 있음
How to find if a cell reaches an average value in a specific amount of instances.
Try this: A= {[11 23 44 99] [111 223 434 939] [1111 2223 433 9339]} targetValue = 426; % Whatever. for k = 1 : length(A) ...

11일 전 | 1

| 수락됨

답변 있음
difference between using [] with imshow and dividing an image by a scalar before using imshow fxn
If you have a floating point image, it expects all the values to be within the 0-1 range. If it's in that range, it will displa...

12일 전 | 1

답변 있음
How to code the orbital distance of a satellite?
Did you try assigning numbers and plugging them in to your equation? numSamples = 1000 actualMaxx = 5.97e24; % kg m = linspac...

12일 전 | 0

답변 있음
i don't know how do this, pls help somebody)))
Did you try d = 10.6 alpha = 50; % Or 1 ctga = whatever???? result = d^3 * ctga * sqrt(sind(alpha)^4 - cosd(alpha)^4); I ha...

12일 전 | 0

답변 있음
Variation of parameters in a range
Maybe something like this: numSamples = 100; % Whatever resolution you want. alpha = linspace(-20, 20, numSamples); beta = li...

12일 전 | 1

| 수락됨

더로드