Answered
getframe(), rectangle specified in normalized coordinates instead of pixel coordinates
Try the following workaround f = figure; f.Units = 'normalize'; f.Position = [0.25 0.25 0.5 0.5]; % Location of...

2 meses ago | 0

Answered
Cutting a Circular Ring at particular points using angle-theta
Try to add the follwoing lines: alphaA = 15*pi/180; % Set the margin, 15 degree here [thet...

2 meses ago | 0

Answered
How do I change the x labels on a boxchart plot?
Try this: x=rand(3,3); figure hbx = boxchart(x); xMdn = median(x); boxw = hbx.BoxWidth; xd = 1:numel(hbx.XData); hold on ...

2 meses ago | 1

| accepted

Answered
Split and count unique string in cell array
Use function groupsummary A = {'B25';'A35';'L35 J23';'K32 I25';'B25'}; T = table(A); groupsummary(T,'A')

2 meses ago | 0

Answered
error using horz cat in app desiner
Variable x is from min:100:max and hence it should not be a single number. However, varibale y in your code seems to be a singl...

2 meses ago | 0

Answered
Mean of a repeating numbers corresponding values
Use function groupsummary: A = [ 10 40; 10 60 ;10 90; 14 10; 14 20; 14 30; 14 40]; T = table(A(:,1),A(:,2),'VariableName',{'It...

2 meses ago | 0

| accepted

Answered
pcolor - Numeric Ruler -> limits and scale commands
Try this: C =[1 2 3;4 5 6; 7 8 9]; pcolor(C); ax=gca; ax.YScale='log';

2 meses ago | 0

| accepted

Answered
How to use scatterplot in a loop
Try this: clear;clc; Data1 = reshape(1:100*18,[],18); Data2 = randi([50 100],100,18); c = repmat(linspace(1,10,18),100,1); ...

2 meses ago | 0

| accepted

Answered
How do I convert dates to days?
Use function days DateStrings = {'01-01-2022','05-01-2022','06-01-2022'}; t = datetime(DateStrings,'InputFormat','dd-MM-yyyy')...

2 meses ago | 1

| accepted

Answered
Shading the area between the minimum and maximumlimits of my data
flip up down instead of flip left right since they are column vector. load('Data1.mat') x2 = [T(:,1); flipud(T(:,1))]; idx = ...

2 meses ago | 0

| accepted

Answered
Why does this loop return the same value for the variable each time?
Just an addition: x=diff(Temp_F); z=conv(x,ones(300,1),"same"); temp_status = (z>15) + (z>=-15 & z<15)*2 + (z<-15)*3;

2 meses ago | 2

Answered
How to reduce matrix size conditionally?
Try this: mean(N_total,2,'omitnan')

2 meses ago | 0

Answered
Store plot values in a variable and then plot it
F.Values and F1.Values are those y-values only and hence the plot does not have any information about the corresponding x-values...

2 meses ago | 1

| accepted

Answered
Perform angle recognition on the objects in the following images
Do some filtering before searching for lines. Need to increase the number of peaks to 20 for function houghpeaks otherwise it i...

2 meses ago | 1

| accepted

Answered
How to generate Pattern in MATLAB
Try the following and you may adjust the numLines to 1000 (Following demo is using 100). Nx = 1000; Ny = 1000; numLines = 100...

2 meses ago | 0

Answered
Trouble getting array to fill in properly
The for loop starts from 2 to n, which is 7 in your case. However, the matrix has 8 rows and 8 columns and hence you never touc...

2 meses ago | 0

Answered
Radar System PPI polar display
You can set the RTick value as follows: theta = linspace(0,2*pi); rho = 20*sin(theta); subplot(1,2,1); polarplot(theta,rho);...

2 meses ago | 0

| accepted

Answered
how to get the contour/shape of a representation in 2D?
Point #8 is close to the previous one and you have to break it into 2 parts and combine them manually. Of course, if the code i...

2 meses ago | 0

Answered
I need to know how to create a contour plot that changes with time.
Update the contour plot properties from the 2nd data. Check this example: clear; clc; t = 1:10; for k = 1:10 x = linspa...

2 meses ago | 0

Answered
How Can I remove lines from the below images?
Try this: clear; clc; data = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/928744/Stryker_Triathlon%2...

2 meses ago | 0

Answered
Starting my x-axis values not from zero
Modify like the following for each plot. figure h = plot(jT,V_cell); % Get the data (Modify) ax=gca; ...

2 meses ago | 0

Answered
how to isolate harmonic component from figure
Try the following to see whether this is what you want or not. clear; clc; load('xx.mat'); x = 1:length(xx); % Separate enti...

2 meses ago | 0

| accepted

Answered
How to extract the radial profile in 'quarter' of circle?
You may extarct the values of the radial profiles from variable 'display_profile' according to the code below. It is a little b...

2 meses ago | 1

Answered
Error using dicom_getFileDetails. Unable to load file .dcm
Use function fullfile to indicate the full path to the file. filename = 'IM-001.dcm'; selpath = uigetdir(pwd,'Select image fol...

2 meses ago | 0

Answered
findout coordinate from plot
Check function datacursormode. I copy the example from the documentation and you can implement it into your code: clear; clc; ...

3 meses ago | 0

Answered
Does not plot all the points
(1) Use function scatter instead of plot (2) Some of the header or some other information were saved in the mat file ( I guess ...

3 meses ago | 1

| accepted

Answered
Why my "arraystore" will change the dimension of the images data set
For your case where the data are images, better to use the following: The default ReadSize is 1 and hence it reads only 1 row o...

3 meses ago | 0

| accepted

Answered
How to overlap 2 graph on a single figure, one of them is a dynamic, changing in each step?
Update the black dot position in the for loop as follows: f = figure; ax = gca; x1 = xline(ax,6); % Sim...

3 meses ago | 1

| accepted

Answered
Polarplot all positive values of the angle theta
Workaround by modifying the TickLabel as follows: theta = linspace(-pi,pi,1000); theta_deg = rad2deg(theta); EF = cos(theta);...

3 meses ago | 0

| accepted

Load more