Question


If condition: "in each row of a matrix one element is zero and the other one is not zero"
How can I write the if condition in a more compact way than if size(find(sum(A==0,2)==1),1) == size(A,1) to express that "i...

5 months ago | 3 answers | 0

3

answers

Answered
matlab_R2022a_maci64.dmg installation crashes after a while.. solutions?
I solved it by: disconnecting the wifi and using mobile phone data changing destination as /Applications/another_folder/MATLA...

5 months ago | 0

| accepted

Question


matlab_R2022a_maci64.dmg installation crashes after a while.. solutions?
matlab_R2022a_maci64.dmg installation crashes after a while.. solutions? Note 1: DESTINATION: /Applications/MATLAB_R2022a.app ...

5 months ago | 1 answer | 0

1

answer

Question


How to draw a "xline" with a given height for the line and a given vertical position for the text?
How to draw a xline with a given height for the line and a given vertical position for the text? In other words, I need a short...

5 months ago | 3 answers | 0

3

answers

Answered
Create a patch which includes all the histogram profiles
@AndresVar: I also got a solution.... it has a few bugs, but it works in the way I was thinking... clear all; close all; clc; ...

5 months ago | 0

Question


Create a patch which includes all the histogram profiles
Hi, I have several profiles/skylines of histograms: hold on for i = 1 : 10 X = normrnd(3000,10,[1,1000 ]); histogram...

5 months ago | 2 answers | 0

2

answers

Question


How can I plot the profile/skyline of an histogram from histcounts?
Hi, how can I plot the profile/skyline of an histogram from histcounts? This is my attempt with the function stairs, which does...

5 months ago | 1 answer | 0

1

answer

Question


Plot occurrences of values with bin edges, by using "histcounts" and "plot" functions
Hi, I have 1000 normally distributed random numbers (with mean = 3 and standard deviation = 10): X = normrnd(3,10,[1,1000]) I ...

5 months ago | 1 answer | 0

1

answer

Answered
Sum elements in the first column according to repeated values in a second column
I found this solution, but I would like to avoid the loop for: [a,b] = unique(A(:,2)); [~,d] = unique(A(:,2),'last'); for i =...

5 months ago | 0

Question


Sum elements in the first column according to repeated values in a second column
Hi, I have a two columns matrix, where the elements of the second column are repeated (here below in my example, 55, 98 and 17 a...

5 months ago | 2 answers | 0

2

answers

Question


How to calculate the centroid / center of a patch?
Hi, how can I calculate the centroid / center of a patch? Maybe something like this? [Xc,Yc] = centroid(patch('XData',X,'YDat...

6 months ago | 3 answers | 0

3

answers

Question


Detect abrupt changes in signals with functions "wavedec" and/or "cwt"
Hi, I read a MATLAB article called "Detecting Discontinuities and Breakdown Points", where both the wavedec (1-D wavelet decompo...

6 months ago | 0 answers | 0

0

answers

Answered
Display cell array elements/texts in a figure, (i) by using a single index, (ii) separated by a comma, and (iii) by using annotation.
I think I found a solution: i = [1 3 4]; % single index groups = {'London-Berlin','Rome-Paris','Madrid-Athens','Boston-Dallas'...

6 months ago | 0

| accepted

Question


Display cell array elements/texts in a figure, (i) by using a single index, (ii) separated by a comma, and (iii) by using annotation.
Hi, I have a cell array containing some text: groups = {'London-Berlin','Rome-Paris','Madrid-Athens','Boston-Dallas'}; I would...

6 months ago | 1 answer | 0

1

answer

Question


How to change size and color of only some edges of a patch?
How can I change size/thikness and color of only some edges of a patch? For example, here I would like to change size/thikness ...

6 months ago | 1 answer | 0

1

answer

Answered
How can I create a patch between two graphs?
I think found the way: patch([x fliplr(x)], [y fliplr(y+2)], [z fliplr(z)], 'g') Everything together will be: clear all;clc; ...

6 months ago | 0

Question


How can I create a patch between two graphs?
How can I create a patch between two graphs ? clear all;clc; s = [1 2 3 4]; t = [2 3 4 5]; x = [0 1 2 2 4]; y = [0 0 0 0 0]...

6 months ago | 2 answers | 0

2

answers

Question


How to make a "page transpose" in a 3D matrix without using the function pagetranspose?
How to make a "page transpose" in a 3D matrix without using the function pagetranspose (due to older version of matlab)?

6 months ago | 2 answers | 0

2

answers

Question


Conflict between "TextLocation" and "annotation" when using "Legend"
Hi, I would like to use the position retrieved with the function TextLocation (by MathWorks Support Team) and use it for the ann...

6 months ago | 1 answer | 0

1

answer

Question


sum the elements in each row of a two-column matrix with the condition that one of the two values in each row is zero
Hi, I have a matrix with 2 columns: A = [ 3710 0 0 3714 3735 0 3719 ...

6 months ago | 1 answer | 0

1

answer

Question


A concise way to sort the rows of matrix A in the same order of the rows of matrix B
Hi, do you know a way to sort the rows of matrix A in the same order of the rows of matrix B, but in a more concise way/code as ...

7 months ago | 1 answer | 0

1

answer

Question


How can I find if edges in a subgraph SG appear inside/belong to a graph G?
How can I find if edges in a subgraph SG appear inside/belong to a graph G? I have this example with a graph G: s = [1 1 2 2 2...

7 months ago | 1 answer | 0

1

answer

Question


A compact way to find elements of an array which are greater, equal, or less than the elements of a second array
Hi, I have two arrays a1 and a2 and I would like to get a third array b which indicates me which elements of a1 are greater, equ...

7 months ago | 2 answers | 0

2

answers

Question


Concatenate elements of cell arrays vertically
Hi I have a 3x1 cell array, where each cell contains a 2x8 double matrix: A = {[8 9 0 0 1 0 1 0; 5 3 0 0 1 1 1 1]; [2 4 0 ...

7 months ago | 1 answer | 0

1

answer

Question


classify "rows" of numbers contained in different arrays
Hi, I would need to classify "rows" of numbers contained in different arrays, and I would like to optimize the code (with a more...

7 months ago | 0 answers | 0

0

answers

Answered
How do I resolve a MATLAB installer fail with an error related to a lxe_win64 or .enc file?
HI, an issue about the R2021b's installation on a Mac... My internet works perfectly.... How to solve this ?

7 months ago | 5

Question


Crop white margins in a PDF file
Hi, I know this question has been asked already, but - so far - I did not find a suitable and easy solution. I have a PDF file ...

7 months ago | 1 answer | 0

1

answer

Question


No effect of the FaceLighting property on a single patch?
Hi, I was trying the FaceLighting property on a single patch but I could not see any difference between "with" and "without" tha...

7 months ago | 1 answer | 0

1

answer

Question


how can I use the function "table" in a loop when the number of input variables changes ?
Hi, how can I use the function "table" in a loop when the number of input variables var1,...,varN, in T = table(var1,...,varN)...

8 months ago | 1 answer | 0

1

answer

Question


"contains" with multiple conditions
Hi, I have the following code A = "159 ( 51,1%) 13 (4,2% ) 139 (44,7%)"; A = textscan(A,'%s','Delimiter',' ')'; A{:}(contains...

8 months ago | 2 answers | 0

2

answers

Load more