Réponse apportée
Manually programmed GUI, guidata() not updating the handles struct
The guidata struct is not a global variable. You should treat it as a mat file. When you write to it, other functions need to re...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Please How I can get the figure like in the Picture below
You first need to define your variables: n=(1:1001); x=0.01*(n-1); y=0.01*(n-4); Now we have vectors, but you want the 2D gr...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Why does MATLAB differentiate between strings and character array data types?
Backwards compatibility. The string data type was introduced a few years ago (in R2016b) to introduce new features. Mathworks...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
what dose [1: equations : 0] means in MATLAB?
In addition to the comment from Walter: Your question can be answered by two searches in the documentation: doc MATLAB Operato...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Remove white/blank space from plot
This answer will only work for raster images (so it will not work for eps). I use a pragmatic approach. I export in high resolu...

plus de 3 ans il y a | 0

Réponse apportée
Use workspace variable in equation solver
If you don't want to use a function to wrap the input, you can use an anonymous function instead. y=5; syms x eqn =@(y) x+y...

plus de 3 ans il y a | 0

Réponse apportée
Can I run MATLAB (R2017 or newer) on a Lenovo Chromebook with an AMD A4 processor?
Probably not. You need a 64 bit OS to run Matlab (R2015b was the last release with an x86 version). Note that ARM64 only counts...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I keep my code and my variable editor in view at the same time
You can drag the menu bar around. You should see a blue outline showing you the result. I often use the variable viewer and edit...

plus de 3 ans il y a | 0

Réponse apportée
Add and subtract matrix element consecutively
Since you already solved your own homework, I see no problem in providing you with some code. The main thing to remember is tha...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I select 20% of a given data set for training?
If you want the sample to be repeatable, you will need to specify the state of the random number generator by calling the rng fu...

plus de 3 ans il y a | 0

Réponse apportée
How do I automatically delete a file after the variables needed has been extracted.
You can use delete directly on a specific file. But the question still stands. Generally you want to process data from one fo...

plus de 3 ans il y a | 0

Réponse apportée
How do I make a state button's value change due to an auxillary app being closed?
There is a closereqfcn for the secondary window. That one should have access to the handle to the object in your main window. Th...

plus de 3 ans il y a | 1

Réponse apportée
Store mxn matrix within a for loop
I'm not sure this is the optimal way to do it, but this does what you explain by using a cell array as an intermediary step. a ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Matlab hidden optimization at the fifth execution
I personally use the ETA_disp function you can find here (or in the AddOn Manager). It only does naive averaging, instead of fan...

plus de 3 ans il y a | 0

Réponse apportée
test for significance of assignment to groups
This doesn't sound like a Matlab question. It sounds to me like you need a Chi-square test.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to count three pair of numbers in given matrix?
A simple loop should already do the trick. I can also come up with much more complex solutions. If you split your initial arr...

plus de 3 ans il y a | 0

Réponse apportée
How to find the nearest matrix between two matrices?
Convert each row to a date format (either datetime or datenum). After that you can subtract one from the other, use abs and min...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Convert logical matix 3d to 2d with unknown z
The any function can do this for you: mask_result=any(masks,3)

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
How shall I sort along a dimension?
The sidebar showed this thread to me. It probably showed you a similar one before you posted this question. The solution is sim...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to convert a 1x2 cell with 500x2 timetable to a 1000x2 timetable
I suspect this is what you need: data_table=vertcat(Out{:}); You should probably avoid the variable name table, since that may...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I need h help i save value in xlsx format through push button function
Because you used global variables instead of sharing data through the guidata struct, it is impossible to know what went wrong. ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do I open files from different subfolders?
There is presumably some structure or pattern to your files. You should use the dir function and make use of that pattern. The d...

plus de 3 ans il y a | 0

Réponse apportée
Convert to fixed values and replace N/A with zero?
Perhaps the strrep function does what you need. data=readlines('https://www.mathworks.com/matlabcentral/answers/uploaded_files/...

plus de 3 ans il y a | 0

Réponse apportée
jsondecode: preserve original string
If the jsondecode function does not mention this as an option, it is not possible without modifying the code, which you should n...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to change the sign of some particular values in an array/matrix?
doc abs

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.
If you want to use the Name=Value syntax, you need to do this: meanBlink=rand;ltime=rand;detrend=rand;w=rand;f=rand;coi=rand;cy...

plus de 3 ans il y a | 0

Réponse apportée
Convert decimal and negative values ​​to integers
Since all your values are between -1 and 1, you need a method to discretize your data to some arbitrary (but repeatable) indices...

plus de 3 ans il y a | 0

Réponse apportée
How to return empty vector of figures
plot_configs=[]; figures = draw_plots(plot_configs) plot_configs=ones(1,2); figures = draw_plots(plot_configs) function figu...

plus de 3 ans il y a | 0

Réponse apportée
Questions about the parfor function
You can change your settings as described on this doc page. You can also explicitly call the parpool function. Note that it mig...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to call the function BlandAltman as an array
You can use my BlandAltmanPlot function and use the GroupIndex paramater to plot several point on a single graph. var1=[494,395...

plus de 3 ans il y a | 0

Charger plus