Answered
How to label axis appropriately in subplot
Just tell it to output x-label when the number of subplot > 10 x=1:8; for k = 1:15 data = rand(1,8); subplot(3,5,k)...

30 Tage ago | 1

Answered
I am trying to plot an stl file but it showing error
function <https://www.mathworks.com/help/matlab/ref/trimesh.html#d123e1396060 trimesh> is another option

30 Tage ago | 1

Answered
Find minimum values of 2nd column of matrices in a cell
cellfun(@(x) min(x(:,2)),A) % where A is your 8x1 cell

30 Tage ago | 1

| accepted

Answered
How to plot on two y- axis
use function yyaxis <https://www.mathworks.com/help/matlab/ref/yyaxis.html yyaxis>

etwa ein Monat ago | 0

| accepted

Answered
colorbar problem in surf plot?
I guess the code should be like that: Tx_power =0:2:40; %1*21 Matrix size Position =1:21; %1*21 Matrix...

etwa ein Monat ago | 0

Answered
how to use iccread if the image contains no profile
Check the MATLAB documentation: iccread The file can be either an ICC profile file or a TIFF file containing an embedded ICC pr...

etwa ein Monat ago | 1

| accepted

Answered
dicomwrite to save dicom image with window level setting
The matrix R coming from dicomread is the rawdata and you are not advised to change it. Most probably you are only able to chan...

etwa ein Monat ago | 0

| accepted

Answered
Count the number of times a word appears?
Use function readtable and groupsummary: clear; clc; A = readtable('demo.txt'); G = groupsummary(A,'A','sum'); A new column ...

etwa ein Monat ago | 1

Answered
How I can combine this cell values in a single matrix?
Something like this and final matrix is C clear; clc; X = cell(1,4); X{1} = round(10*rand(1,7)); ...

etwa ein Monat ago | 0

Answered
How to extract data from a specified row number (omitting first row)
Just get rid of the first data in the index: idx_rtoe_end = find(strcmp(data_raw(:, 2), '"HX210.11.31.M7-LF S0021"')); idx_rto...

etwa ein Monat ago | 0

| accepted

Answered
magnification row axis image
B = imresize(A,[28000 28000]) But I am thinking the image will be highly distorted.....

etwa ein Monat ago | 0

Answered
Problem with setting specified intervals with colorbar
The limiting factor is the range of your data. If you really want the colorbar starts from 0 to 10, you need to set the limit a...

etwa ein Monat ago | 0

| accepted

Answered
create circular dot grids
Use function pol2cart clear; clc; separation = 36; % Angle separation rhoA = 10; ...

etwa ein Monat ago | 0

| accepted

Answered
Fail to process multiselect files by using readtable function....
Not quite understand your issue, but I guess you are not able to get the figure when the code is reading multiple files. So I ...

etwa ein Monat ago | 0

Answered
Error with contourf representing 3d plot in 2d
Refer to the MATLAB documentation in this Link contourf(X,Y,Z) specifies the x and y coordinates for the values in Z. However,...

etwa ein Monat ago | 0

| accepted

Answered
Algorithm for a Loop in a Table
Try this: Col1 = repelem(L,4); Col2 = repmat(M',2,1); Col3 = repmat([N(1:2:end),N(2:2:end)]',2,1); Table = [Col1 Col2(:) Col...

etwa ein Monat ago | 0

Answered
using readtable function except for last five lines from text file
Use your similar method to detect the last line of the valid data and add some import options as follows: for i=1:2 line_check...

etwa ein Monat ago | 1

| accepted

Answered
Find RGB color code in an image
Modify this line by swapping xData & yData c = [R(yData,xData) G(yData,xData) B(yData,xData)];

etwa ein Monat ago | 0

| accepted

Answered
Shade area between two curves
Use function fill clear; clc; load('xdata1.mat'); load('up.mat'); load('low.mat'); coord_up = [xdata1,up]; coord_low = [xd...

etwa ein Monat ago | 0

| accepted

Answered
Convert text file to Excel file with dates in the correct format?
You may change it to a string format and write to an excel file. clear; clc; T=readtable('FDATA.TXT'); T.Var3=datestr(T.Var3,...

etwa ein Monat ago | 0

| accepted

Answered
Change the dimesion of concatenation of RGB images
Try this: B = permute(A, [1 2 4 3])

etwa ein Monat ago | 1

| accepted

Answered
Remove White border from Image
Try function imcrop

etwa ein Monat ago | 0

Answered
How can i transfer a specific number in matrix to another number along the solution matrix??
Try this: [value,~]=max(A(logical(x))); A(A==value)=0;

etwa ein Monat ago | 0

| accepted

Answered
find max at each row array in a cell
B=(cell2mat(A')');

etwa ein Monat ago | 1

| accepted

Answered
Help with syntax for a self-made function
You have not define your output variable 'fields' in your function, so nothing returns from the function

etwa ein Monat ago | 0

| accepted

Answered
grouping files together by name
Following code assumes all your png files are inside the working directory and the filename format are xxxx.00.000.png. clear; ...

etwa ein Monat ago | 0

Answered
I want to make a loop that keeps replacing its own 'S's with SLSRSLS any N number of times
N = 3; k{1} = {'S'}; for r = 1:N k{r+1} = strrep(k{r},{'S'},{'SLSRSLS'}) end Results are k{1}, k{2}, k{3} & k{4}. k{4}...

etwa ein Monat ago | 0

| accepted

Answered
Draw circle and ellipse in matrix
Modify the third line: nx=100; ny=90; domain=ones(ny,nx); [cols rows]=meshgrid(1:nx,1:ny); centerX = 40; centerY = 40 ...

etwa ein Monat ago | 0

Answered
How to save vectors of different lengths to excel file
Since you are writing the data in a column, so you just need to take the transpose as follows. Noticed that 'velocities' has 8 ...

etwa ein Monat ago | 0

| accepted

Answered
how can a make a loop for a double value in Matlab?
I think it should put into a cell array: EI = cell(1,length(T1.ID)); % Cell array for i = 1:length(T1....

etwa ein Monat ago | 0

| accepted

Load more