Réponse apportée
how can i change the Color of the Row (uitable) when if==0? Die farbe der reihe im IUtable soll sich öndern wenn if ==0
Hi Torsion27, using uifigure and uitable there is an easy-to-apply solution on your data. WIthout going through your code I rec...

presque 5 ans il y a | 0

Réponse apportée
Replacing Values Between a 0 and a 1 in a Vector
Hi Daniel Steyer, this code snippet should provide the requested functionality. cIn = cellfun(@num2str,num2cell(A),'UniformOut...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
setting a variable to the input
Hi Jian Chen, The functionality that you describe cannot be done. Using object oriented programming the functionality could be ...

presque 5 ans il y a | 0

Réponse apportée
Hat on letter on x/ylabel WITHOUT using LaTeX?
Hi Minas Emiris, convert the circumflex from unicode to string via sprintf (see here, unicode table for combining characters fo...

presque 5 ans il y a | 2

Réponse apportée
Using Levenberg-Marquardt algorithm in the optimization
Hi RAPHAEL OWENS, there are several solvers and methods available. One of the available functions in Matlab is lsqcurvefit(). B...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
for loop - Array indexing problem
Hi Arnar Þór Ólafsson, you can use any vector to run for-loops. You can assign the values in the order as you wish. It might be...

presque 5 ans il y a | 0

Réponse apportée
plotting a natural cubic spline
Hi Justin Howard, I guess there is a mistake concerning the second derivative at the start and end points of the requested spli...

presque 5 ans il y a | 0

Réponse apportée
How to find values from a bode plot in matlab
Hi Uzair Akhtar, According to controller theory you - probably - have to extract the following values: w_crit: probably, the a...

presque 5 ans il y a | 0

Réponse apportée
How to numbered title plot in looping?
Hi Eddy Iswardi, The following minimal example show how to include numbers into axes titles: for na = 1:3 fh{na} = figure...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How do I run a loop through multiple subjects?
Hi Troy Tyszkowski, loop through your subject list (replace the disp()-command by your 'roast'): subject_list = {'subject1','s...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to display cell format or table format in GUI table?
Hi Siti Khadijah Norzafri, apparently uitable() accepts table data: fh = uifigure; th = uitable(fh,'Data',Data3); You can us...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to shade and calculate area above a reference line in a plot?
Hi Bhaskar Ravishankar, You can use area and logical indexing in order to shade the curve: resX = 0.1; xlim = [-pi,pi]; x ...

presque 5 ans il y a | 0

Réponse apportée
How does lsim work?
Hi shahzer rahman, your question is answered within Matlab documentation: lsim(), linking to ltitr() (which unfortunately does ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Convert the for loop into while loop without using the break statement
Hi Kimberley Pereira, If you want to translate your for-loop into a while-loop, you have to think about, when exactly the loop ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Clear persisent variable in for loop
Hello Deepa Maheshvare, According to documentation persistent variables can be cleared by clearing the function from memory. If...

presque 5 ans il y a | 0

Réponse apportée
Doubt in MATLAB coding.
Hi Joy Salomi, Thanks for the paper. The differential equation should be written in spherical coordinates (edit: I think there ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Doubt in MATLAB coding.
Hi Joy Salomi, the implementation of a boundary value problem with singular term has to be done a bit different than you did. ...

presque 5 ans il y a | 0

Réponse apportée
find the mean for each category and summarize it
Hi Mohammad Aljarrah, the function that calculates the desired values can be exchanged according to your needs. I used the "mea...

presque 5 ans il y a | 2

Réponse apportée
Shade an area between 5 lines
Hi tom thornton, have a look here: https://de.mathworks.com/matlabcentral/answers/467419-how-to-get-different-colours-for-diffe...

presque 5 ans il y a | 1

Réponse apportée
Make a bode plot without bode()?
Hi Jeroen von der Klip, Your task sounds as you want to omit the use of a toolbox. Even though the control system toolbox offer...

presque 5 ans il y a | 3

Réponse apportée
Transport Delay of Zero
Hi Shane Cheshire, There is plenty of hints in Matlab documentation on how to fix algebraic loops. Most conveniant is to introd...

presque 5 ans il y a | 0

Réponse apportée
sketch a signal function
Hi mohamad sawli, your question lacks some descriptive text. I guess you would like to plot the function. % define function m...

presque 5 ans il y a | 0

Réponse apportée
deleting numbers in cell array
Hi sam van Bohemen, Thank you for your description. I guess the following code will do the trick: dInput = [10 11 10 28 9;...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
fillmissing if the amount of NaN smaller than 15% in all table.
Hi Behzad Navidi, please test whether these two lines fulfill your requirements: nanPercent = cellfun(@(cIn) sum(isnan(cIn.pre...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Can I make dynamic name for the structure?
Hi Zeynab Mousavikhamene, You can but you should not. Dynamically named variable names are prone to errors and make code diffic...

environ 5 ans il y a | 1

Réponse apportée
How to simplify the loops of a matrix
Hi Xinyuan, the code snippet you are providing does not make any use of the two for-loops. You can remove them, since the funct...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Add n days to juliandate
Hi Asatur Khurshdyan, According to documentation example juliandate() you may use caldays() to add calendar days to a datetime-...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting Binary step function
Hi Linu Pinto, You could plot each section separately. x = -10:0.1:10; y = sin(x); z(y<0) = 1; z(y>=0) = 0; nZNew =[0 fi...

environ 5 ans il y a | 0

Réponse apportée
Placing radiobuttons with relative locations
Hi Ryan1234321, When creating GUIs by command without the use of GUIDE I do place all elements in absolute position. I take car...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Converting cell array to struct
Hi hamzah khan, it is not clear to me how your output should look like. Documentation of cell2struct reports several examples. ...

environ 5 ans il y a | 0

Charger plus