**Statistics**

**MATLAB Answers**

**0** Questions

**189** Answers

RANK**167**

of 249 841

REPUTATION**552**

CONTRIBUTIONS

**0** Questions

**189** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**46**

RANK

of 17 367

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 103 556

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Y data on the bar plot

Why not using the example in the documentation by getting the EndPoints as follows: clear; clc; x = [25 50 75]; vals = [6000...

environ 13 heures ago | 1

Why won't this function plot?

No need to use the for loop, Just use the following: plot(c1_exp)

environ 16 heures ago | 0

how to fit ylabel for the plots?

You may also experiment with the InnerPosition of 'gca'. Following shows an example: Nz = 100; A = randi(100,1,Nz); figure(...

environ 18 heures ago | 0

plotting Y data on scatter plot

Another option as follows: for i = 1:6 text(X(i),Y(i),sprintf('(%.0f)',Y(i))) end

1 jour ago | 0

| accepted

how to convert dicom RT structure to binary mask

It uses world coordinates in x,y & z axis which is shown in your attached png file. So you need to capture the axis information ...

3 jours ago | 0

How to plot unequal time series with same x-axis

You may try the following: T = readtable('data.csv'); % Read csv file as entire table TT2 = table2timetable(T(:,4:5))...

3 jours ago | 0

| accepted

How to iterate matrix multiple times?

Write your code as a function and save it as a m-file (or use the attached file): function Lj = processLa(La) H = [1 1 1 ...

4 jours ago | 1

Can anyone help me?

Varaible a becomes a character array after you use function num2str, so it is comparing a 'character' instead of a number. On t...

4 jours ago | 1

How to I find the intersection point between y=x*exp(x)/(exp(x)-1) and y=3? I can't seem to have the intersection point displayed.

Use function fzero to help you to find the intersection. x = 1:1:10; f = @(x) x.*exp(x); g = @(x) exp(x)-1; y_1 = @(x) f(x)....

4 jours ago | 0

How to check in one loop for multiple values V1,V2,V3... I have write the code but I am not getting value multiplied in answer

One possible way is to use a cell array instead of different variables as following: Use only one variable V. V(1) = {char(937...

5 jours ago | 0

| accepted

Creating an Image from a Textfile Data using Matlab

Try the followings: (with editing below) Normalization just divide by 255 for uint8 image. [Ny,Nx,Nc] = size(input_image_3D); ...

5 jours ago | 0

| accepted

Superimposing Graphs with large difference in Y-axis values

Try function <https://www.mathworks.com/help/matlab/ref/yyaxis.html yyaxis>

5 jours ago | 1

How to create a custom grayscale colormap between white and black?

You may use 'colormapeditor' as follows to create a custom colormap:

7 jours ago | 0

| accepted

plot in logarithmic scale

I think you may need to use function contour3. Then you can set the Z-axis scale to log by set(gca,'ZScale','log')

7 jours ago | 0

changing dicom-dict.txt has no effect

You may refer to the following and try to create a new DICOM tag and write it to a new DICOM image. After that, the DICOM heade...

8 jours ago | 0

What would be the MatLab code to get the output from the input image?.

Try the following: rawdata = num2cell((randi(10,10,4))); index = [2 2 2 1 2 3 4 2 1 2]'; singlecell = cellfun(@(x,y) x(y), nu...

9 jours ago | 0

How can I save the result obtained from the For loop in one variable ?

You may assign another variable with index which stores the result within the loop for i = 1:10 %.... %.... [centers, r...

9 jours ago | 1

| accepted

How to convert cell to matrix

Try this, where A is your 100001x2 cell: cell2mat(cellfun(@(x) x,A))

9 jours ago | 0

How can I skip data while reading values from text file?

I try to use function fgetl as follows: Noticed that the first 2 rows have data format different from others, so they are remov...

9 jours ago | 0

| accepted

Error Using cellfun for a Matrix

Try the following: for r = 1:27 for c = 1:27 A = a_d{r,c}; B_x{r,c} = cellfun(@(x) sum((x-A)./(x+A),'all...

10 jours ago | 2

| accepted

How to make circle in matrix form

Another option using function pol2cart: clear; clc; separation = 1; % Angle separation, 1 degree ...

10 jours ago | 0

I need to contour a round object in a image.

One possible way: rawdata = imread('Moon.jpeg'); BW1 = imbinarize(rawdata); BW2 = bwareafilt(BW1,1); BW3 = imfill(BW2,'holes...

10 jours ago | 1

| accepted

How to set minorticks in colorbar?

Try the following: ax = axes('position',cb.Position); set(ax,'XMinorTick','on');

13 jours ago | 0

How to list group names on resampled points after splitapply?

Try this: [G,name] = findgroups(holes12and13.holeid); % Store the extracted hold id % ...

13 jours ago | 0

| accepted

text.png how to remove vertical lettering on a photo?

regionfill supports grayscale image and your input image is a black and white image only. Therefore, regionfill gives an error....

13 jours ago | 0

| accepted

Daily mean of a hourly dataset

Try the following: filename = 'data_2001_2010.txt'; Data1 = readtable(filename,'VariableNamingRule','preserve'); Data1(:,1)=[...

13 jours ago | 0

| accepted

Split table entry into separate columns

How about the following: Name = "ABBV 09/17/2021 120.00 C"; Data = "Dummy"; A = table(Name,Data); A.Name = strsplit(A.Name,...

14 jours ago | 0

Overlay ROI on an image

The four-element position vector is located at roi.Position, which is [600,200,250,450], Try the following: pos=roi.Position; ...

17 jours ago | 0

| accepted

determining the edges of the money image with red color

It is better to ask imfindcircles to find all the dark circles and adjust the range of radius. In your case, the range is too s...

18 jours ago | 0

| accepted