回答済み

What really is in each pixel of a DICOM slice ?

You may check the following DICOM Tags:(0028,0100), (0028,0101) and (0028,0102) regarding to the information about number of bit...

What really is in each pixel of a DICOM slice ?

You may check the following DICOM Tags:(0028,0100), (0028,0101) and (0028,0102) regarding to the information about number of bit...

3ヶ月 前 | 2

| 採用済み

回答済み

Suppress figures instead of displaying each one and closing it.

Set the figure to invisble and use f as the handle in the following example if needed. f = figure('Visible','off')

Suppress figures instead of displaying each one and closing it.

Set the figure to invisble and use f as the handle in the following example if needed. f = figure('Visible','off')

5ヶ月 前 | 0

回答済み

Use Matlab Function Block to plot into figure created by Matlab Script

Try this in the function path_plotting function path_plotting(x_pos, x_pos_prev, y_pos, y_pos_prev, ax1) x_coodinates = [x...

Use Matlab Function Block to plot into figure created by Matlab Script

Try this in the function path_plotting function path_plotting(x_pos, x_pos_prev, y_pos, y_pos_prev, ax1) x_coodinates = [x...

5ヶ月 前 | 0

回答済み

Dimensions of array being concatenated are not consistent

Variable um1 is a column vector which have the same size as variable t or Ag. However, variable uo is a scalar which is equals t...

Dimensions of array being concatenated are not consistent

Variable um1 is a column vector which have the same size as variable t or Ag. However, variable uo is a scalar which is equals t...

5ヶ月 前 | 0

回答済み

3D plot of output variables

Try function plot3 data = load('Output100.mat'); plot3(data.Y1,data.Y2,data.t);

3D plot of output variables

Try function plot3 data = load('Output100.mat'); plot3(data.Y1,data.Y2,data.t);

5ヶ月 前 | 0

回答済み

Add labels to multiple points in scatterplot

Read about <https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatip.html datatip>.

Add labels to multiple points in scatterplot

Read about <https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatip.html datatip>.

5ヶ月 前 | 0

回答済み

How to scale the data with matric of lon (1300 x 1300) and lat (1300 x 1300) ?

Use idexing as follows and please verify the variable names you are using. lon_idx = (geo.lon > 118) & (geo.lon < 124); ...

How to scale the data with matric of lon (1300 x 1300) and lat (1300 x 1300) ?

Use idexing as follows and please verify the variable names you are using. lon_idx = (geo.lon > 118) & (geo.lon < 124); ...

5ヶ月 前 | 1

| 採用済み

回答済み

Changing file path in a loop and save figures

Try this to indicate the entire path: savefig(fullfile(thisDir,'DN.fig'))

Changing file path in a loop and save figures

Try this to indicate the entire path: savefig(fullfile(thisDir,'DN.fig'))

5ヶ月 前 | 1

回答済み

Exportapp error in saving entire app designer GUI

It support figure object and hence you should use: exportapp(app.UIFigure,[filepath filename]);

Exportapp error in saving entire app designer GUI

It support figure object and hence you should use: exportapp(app.UIFigure,[filepath filename]);

6ヶ月 前 | 0

回答済み

how to prevent plotting more curve than the axis limit in app uiaxes

Put those data below your limit to NaN. x=1:50; y=randi([-5,25],1,50); threshold = 0; y(y<threshold)=NaN; % Set thos...

how to prevent plotting more curve than the axis limit in app uiaxes

Put those data below your limit to NaN. x=1:50; y=randi([-5,25],1,50); threshold = 0; y(y<threshold)=NaN; % Set thos...

6ヶ月 前 | 0

回答済み

In Matlab App designer eliminate the gray edge of an "Axes" component

Set the figure color to white. f = figure; f.Color=[1 1 1]; % Set color to white

In Matlab App designer eliminate the gray edge of an "Axes" component

Set the figure color to white. f = figure; f.Color=[1 1 1]; % Set color to white

6ヶ月 前 | 0

| 採用済み

回答済み

Add heatmap into uifigure (No App Manager)

You may use uipanel instead of uiaxes for heatmap

Add heatmap into uifigure (No App Manager)

You may use uipanel instead of uiaxes for heatmap

6ヶ月 前 | 0

回答済み

detect the largest red object, its centroid and put bounding box around it

use function <https://www.mathworks.com/help/images/ref/bwareafilt.html bwateafilt>

detect the largest red object, its centroid and put bounding box around it

use function <https://www.mathworks.com/help/images/ref/bwareafilt.html bwateafilt>

6ヶ月 前 | 0

回答済み

Meshgrid lighning and how to use contour around the plot

For the accurate solution, you need to find those x and y where z=0.2 and 0.8. If an estimated solution is accepted, the positi...

Meshgrid lighning and how to use contour around the plot

For the accurate solution, you need to find those x and y where z=0.2 and 0.8. If an estimated solution is accepted, the positi...

6ヶ月 前 | 1

回答済み

Surf plot on GUI interface

Create an uiaxes inside the uipanel or you can simply use uiaxes instead of uipanel inside the uifigure.

Surf plot on GUI interface

Create an uiaxes inside the uipanel or you can simply use uiaxes instead of uipanel inside the uifigure.

6ヶ月 前 | 0

回答済み

find and store the index value of maximum or minimum value of cell array

[~,idxMax]=cellfun(@max,yourCell); % Index for maximum [~,idxMin]=cellfun(@min,yourCell); % Index for minimum

find and store the index value of maximum or minimum value of cell array

[~,idxMax]=cellfun(@max,yourCell); % Index for maximum [~,idxMin]=cellfun(@min,yourCell); % Index for minimum

6ヶ月 前 | 0

回答済み

How to create ROI object handle?

You may try the following: h = figure; imshow(imread('pout.tif')); imrect(); % not use the output of imrect() ax=gca; hAx=f...

How to create ROI object handle?

You may try the following: h = figure; imshow(imread('pout.tif')); imrect(); % not use the output of imrect() ax=gca; hAx=f...

6ヶ月 前 | 0

回答済み

Having issues with fprintf statement. It gives me "error using vertcat"

Missing dots in the second line, try the following fprintf(['j \t k =1 \t k=2 \t k=3 \t k=4 \n'... '- ----...

Having issues with fprintf statement. It gives me "error using vertcat"

Missing dots in the second line, try the following fprintf(['j \t k =1 \t k=2 \t k=3 \t k=4 \n'... '- ----...

6ヶ月 前 | 0

| 採用済み

回答済み

How to align both vertically and horizontally annotation box with legend box in plots?

"annotation" dose not have properties of legend command as north, east,... I think you may need to calculate the margin separat...

How to align both vertically and horizontally annotation box with legend box in plots?

"annotation" dose not have properties of legend command as north, east,... I think you may need to calculate the margin separat...

6ヶ月 前 | 0

| 採用済み

回答済み

How to skip zeros values form a matrix and plot with a time values?

You may put those zero to NaN and plot it. It will skip those points. A = [1,2,3,4,0,6,7,0,9,10,11,0,13,14,15]; t=[1,2,3,4,5,6...

How to skip zeros values form a matrix and plot with a time values?

You may put those zero to NaN and plot it. It will skip those points. A = [1,2,3,4,0,6,7,0,9,10,11,0,13,14,15]; t=[1,2,3,4,5,6...

6ヶ月 前 | 1

回答済み

Plotting a legend without displaying data on UIAxes

Try this if you would like to show the figure and legend without showing the data. Set the 'LineStyle' to 'none' to hide the li...

Plotting a legend without displaying data on UIAxes

Try this if you would like to show the figure and legend without showing the data. Set the 'LineStyle' to 'none' to hide the li...

6ヶ月 前 | 0

回答済み

how do i use datetime adjust xtick

Try the following without using the function datetick. f = figure; ax=gca; plot(ax,all_time_1206 , all_tide_outliner_1206,'k'...

how do i use datetime adjust xtick

Try the following without using the function datetick. f = figure; ax=gca; plot(ax,all_time_1206 , all_tide_outliner_1206,'k'...

6ヶ月 前 | 0

回答済み

i want to see each plot figure for every j i have, so how can i do it?

Your for loop states j = length(dt1), which is 3 in your case. So the for loop only do figure 3 for you. Use the following inst...

i want to see each plot figure for every j i have, so how can i do it?

Your for loop states j = length(dt1), which is 3 in your case. So the for loop only do figure 3 for you. Use the following inst...

6ヶ月 前 | 0

| 採用済み

回答済み

How to shade the same area in each subplot in a 5x1 Figure?

If you would like to shade the entire region and already knowing the y-limits, you can put the value of those limits directly wh...

How to shade the same area in each subplot in a 5x1 Figure?

If you would like to shade the entire region and already knowing the y-limits, you can put the value of those limits directly wh...

6ヶ月 前 | 0

回答済み

detecting circle using hough tranform

The range of radius is too small and the sensitivity may not be good enough. I choose radius from 100 to 150 pixels and sensiti...

detecting circle using hough tranform

The range of radius is too small and the sensitivity may not be good enough. I choose radius from 100 to 150 pixels and sensiti...

6ヶ月 前 | 1

回答済み

Error using convert2quaterly: The value of 'TT1' is invalid.

Your data has only one column besides the date. So you can only state one method to your data. The following shows an example w...

Error using convert2quaterly: The value of 'TT1' is invalid.

Your data has only one column besides the date. So you can only state one method to your data. The following shows an example w...

6ヶ月 前 | 0

回答済み

JPG to GIF animation

The colormap for the first two figures are overwritten by the third one in the following: [A,map] = rgb2ind(imread('obr_0.jpg')...

JPG to GIF animation

The colormap for the first two figures are overwritten by the third one in the following: [A,map] = rgb2ind(imread('obr_0.jpg')...

6ヶ月 前 | 0

| 採用済み

回答済み

delete consecutive commas in txt file

May be this: rawdata = readlines('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1122645/ca.txt'); iwant = [];...

delete consecutive commas in txt file

May be this: rawdata = readlines('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1122645/ca.txt'); iwant = [];...

6ヶ月 前 | 1

回答済み

Save a Figure as a .png and .pdf of a Specific Size

Try this to see whether the following is what you want. clear; clc; f = figure; plot(1:10,1:10); % Set figure position after...

Save a Figure as a .png and .pdf of a Specific Size

Try this to see whether the following is what you want. clear; clc; f = figure; plot(1:10,1:10); % Set figure position after...

7ヶ月 前 | 0