Community Profile

photo

Rightia Rollmann


Attivo dal 2016

Statistiche

  • Thankful Level 5

Visualizza badge

Content Feed

Visto da

Domanda


How to Define Title Before Plotting?
The code below works well: hax = axes; x = linspace(0,3); y1 = sin(5*x); plot(hax,x,y1) hax.Title.String =...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Change the Fill Color of the Box in a Box Plot?
How to change the FaceColor of the box in the box plot below to red? A = [1:12]; boxplot(A);

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How to mask cells of certain values?
The following works well: A = [1 2 3 4 5]; A > 2 0 0 1 1 1 But, how can i mask A==1 and A ==3, so getting the ...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Change the Staking Order of Lines from Back-to-Front to Front-to-Back?
It seems that the order of staking lines in a graph is back-to-front, so blue line will be behind red line. hor_line = [1,...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Is there any way to have labels in color for boxplots?
It seems that boxplot function doesn't accept TeX Markup to give a specific color to labels of boxplot. Any idea to give a co...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


function handle for random function
If I want to know the integral of the function log(x) from 0 to 1, I do the following: fun = @(x)log(x); q1 = integral(f...

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Why p-values are uniformly distributed when the null hypothesis is true?
I am struggling to understand why p-values are uniformly distributed when the null hypothesis is true. To me, it sounds very cou...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Risposto
Why does MATLAB generate identical random values after re-opening the program?
I set rng to 'default', so I expected that it'll generate new random numbers after re-running MATLAB, but that is not the case. ...

oltre 5 anni fa | 0

| accettato

Domanda


Why does MATLAB generate identical random values after re-opening the program?
I run the code below y = rand(1,5) and I get the following values: 0.8147 0.9058 0.1270 0.9134 0.6324 ...

oltre 5 anni fa | 2 risposte | 0

2

risposte

Domanda


How to plot a probability distribution object?
How can I, for example, plot the probability distribution object below? pd = makedist('Normal','mu',75,'sigma',10);

quasi 6 anni fa | 1 risposta | 1

1

risposta

Domanda


Problem with Making a Folder in Win10
I want to create folder 't2', but MATLAB throws a warning that 'Directory already exists', although the folder does NOT exist. W...

quasi 6 anni fa | 0 risposte | 0

0

risposte

Domanda


The Background Color Is Not Saved!
I want to save this image with a gray background, but when I open the .jpg file, it appears with a white background. h = gc...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


How to modify a struct and create a new struct out of it?
I want to get Cartesian coordinates from struct A A(1).X = 1; A(1).Y = 2; A(1).Z = 3; A(2).X = 4; A(2).Y = 5; ...

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


What Is the Meaning of This Syntax?
What is the meaning of this syntax: .'* for example: A = [1 4 2 5 6; 2 3 4 5 6]; W = [2; 3]; ...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Compare Two Groups of Signals?
Imagine I have two groups of signals A and B having four and three samples, respectively. A1 = [1 3 -1 2]; A2 = [1 3 -2 ...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


How to Put a Specific Function Inside a For Loop Depending on the Result of an If Statement?
I am currently using something like below. The problem is that for each iteration the if statement is checked and it slows down ...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


What Does Each Element of This Syntax Mean?
I create a push button in GUIDE. When I create a callback function for it, it automatically creates the syntax below: <<...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Make All Children of a Figure Invisible?
Imagine I have a figure with three axes objects and a rectangle. hfig = figure; hax1 = axes; hax2 = axes; hax3...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Keep a Character in A Fixed Position?
I have created a Static Text that shows the current values of A and B: A: 1 B: 2 When A’s value has more than one di...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How Can I Save Some Fields of a Struct Using uisave Function?
I want to save some fields of a struct using |uisave| function. The problem is |uisave| doesn’t have the options that |save| fun...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Make a Huge Struct Accessible to Many Functions?
I have a huge struct loaded by a function. I have other functions that will use some of the fields of the struct to calculate so...

circa 7 anni fa | 3 risposte | 0

3

risposte

Domanda


Why Is Not the Handles Variable Updated?
I have made a simple GUI in GUIDE. I update field A by function myfun1 to the value 20, but I still get 1 in the Command Window!...

circa 7 anni fa | 3 risposte | 2

3

risposte

Domanda


Why Does the Field Get Unexpectedly Deleted?
I have made a GUI in GUIDE. When myfun1 gets executed inside myfun2, suddenly field A gets deleted from variable handles. WHY...

circa 7 anni fa | 0 risposte | 0

0

risposte

Domanda


How to Save a File with a New Exetesion?
Imagine I have the variable below: B = [1 2 3]; save(‘B’, ‘B’); When I save variable B, MATLAB creates a file named B...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


How to Run an App Again without the Need to Close It Manually?
Imagine I have a simple app made in GUIDE which loads a file and does some analyses. When I want to load another file, I first h...

circa 7 anni fa | 0 risposte | 0

0

risposte

Domanda


How to Access All Variables of a Function?
Imagine I have several functions in an M File and want to see ALL variables of one of these functions when it is executed. How? ...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


Why Does Handles Overwrite This Variable?
I have created a GUI with only two push buttons and then replaced the callback functions of these two push buttons with the code...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Share Data Between These Functions?
Imagine I have myfun1 that loads struct A from disk. I have other functions that should use some fields of A to do some calculat...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to Clear all Variables of a Workspace Except for Those Explicitly Excluded?
How do I clear all variables of a workspace except for those that I explicitly mention not to be cleared?

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


How to Access These Values of This Struc without Using a For Loop?
Here’s my initial struct: A(1).B.C = 'a'; A(2).B.C = 'b'; A(3).B.C = 'a'; A(4).B.C = 'a'; I want to change the ...

circa 7 anni fa | 0 risposte | 0

0

risposte

Carica altro