Answered
Filling a white space in plot with another color
It is not possible in a direct way, but you can do things with patch to get a similar result: t=linspace(0,5*pi,1000); y=abs(s...

27 jours ago | 0

| accepted

Answered
How to make a linear regression from an excel file
You can use the unique function and a loop. (edited to include a custom function to extract a specific strain value) data=xlsr...

27 jours ago | 0

Answered
Draw line between two points if x distance is longer than...
You can easily find the indices of such locations (assuming x and y are sorted along x): x=[linspace(-16,-8,200) linspace(-5.5,...

27 jours ago | 0

| accepted

Answered
training model neural network
This sounds like an mlint warning. The source would be reduceDataset being false, which would cause the entire if block to be sk...

environ un mois ago | 0

| accepted

Answered
Unable to delete variable
removevars will only work on tables, not on structs. Use rmfield to remove a field from a struct.

environ un mois ago | 1

| accepted

Answered
How to reverse a series of variable assignments?
I tend to use deal to make it more or less compact: [var,othervar,somevar]=deal(setting1,othersetting,somesetting); Now if I w...

environ un mois ago | 1

Submitted


ifversion
Determine if the current version satisfies a version restriction

environ un mois ago | 1 download |

Answered
different outcome cellfun(@isempty,..) vs cellfun('isempty',...)
The reason is partly documented: "If you specify a function name rather than a function handle cellfun does not call any overlo...

environ un mois ago | 0

| accepted

Answered
Latex interpreter in MATLAB Answers
The LaTeX editor is slightly hidden: it is labeled with the sigma and generally referred to in the Answers documentation as 'equ...

environ un mois ago | 0

Answered
How to graph discrete equation: y(n) = y(n-1) + 1 for 1000 samples
I would do something like this: %create a vector of the correct size y=NaN(1000,1); % by using NaN we should notice it if we s...

environ un mois ago | 0

| accepted

Answered
How do I make a lower triangular matrix from a column vector?
The functions you should be looking for are tril and triu. You should be using triu, because you seem to want to fill your array...

environ un mois ago | 3

Answered
How to implement 2 vectors in a for-loop to get a matrix?
[A,B]=ndgrid(a,b); Then a single for-loop will do

environ un mois ago | 0

Answered
학교 정보 변경하는 방법
Even if sometimes staff members look on this forum and post from time to time, the help on this forum is mostly provided by peop...

environ un mois ago | 0

Answered
Error "too many input arguments"
You misread the error message slightly. The source of your issue is here: disp ('code2 =', code2) The disp function only allow...

environ un mois ago | 0

| accepted

Solved


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

environ un mois ago

Solved


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

environ un mois ago

Solved


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

environ un mois ago

Solved


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

environ un mois ago

Solved


Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

environ un mois ago

Solved


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

environ un mois ago

Solved


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

environ un mois ago

Solved


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

environ un mois ago

Solved


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

environ un mois ago

Solved


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

environ un mois ago

Solved


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

environ un mois ago

Answered
log base 10 plot
You're plotting a single value, but you left the default for plot, which is to only show lines, not markers. So your plot looks ...

environ un mois ago | 0

| accepted

Answered
nohup matlab - how to pass input to scripts
So actually your question is how to define a char array inside such a call. I suspect you simply need to escape the quotes: noh...

environ un mois ago | 0

Answered
For loop with use of larger than
It sounds like one of the functions related to histcounts is appropriate here. angles=rand(500,1)*2*360-360; pressure=sind(ang...

environ un mois ago | 1

Answered
How to use First button function codes "symbol name" in Second button function in App Designer
Don't use global variables. There are many other ways to share data between callbacks. You should probably store the variable in...

environ un mois ago | 0

| accepted

Solved


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

environ un mois ago

Load more