Réponse apportée
Find index of a nearest value
Hi @Adi Purwandana A simple slution using dsearchn x = [1 2 3 4 5 6 11 15 21 51 52 54 100 101 151 201 251 301 401]; vals = [1...

plus d'un an il y a | 3

| A accepté

Réponse apportée
I need to find the index of a 2d matrix within a 3rd array which has the lowest number of NaN values.
HI @Angus Here is a simpler example with lower dimentions.. Enjoy M = randi([1,100],[5,10,15]); idxNan = rand([5,10,15])...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Time format is changed to decimal when calling the time data from excel.
Hi @Swathi Another soltion using timeseries funciton Have fun... out = readtable('dates1.xlsx'); outFormat = 'hh:mm:ss AM'; ...

plus d'un an il y a | 1

Réponse apportée
MATLAB editor configuration text extremely small
HI The quickest way to change the editor's font is by : clicking somewhere on the code region Holding doen the Ctrl key and r...

plus d'un an il y a | 0

Réponse apportée
eval function in for-loop and change of numbers bigger through NaN
Hi @Franziska I simply combine your inputs to a simple code (with indexes 1-->4): Please re-conider @Stephen23 comments Tempe...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Avoid deleting of datatip when clicking on marker
Hi @Sebastian Hölz Just set the 'PickableParts' = 'none' DT = datatip(h,'DataIndex',22,'PickableParts','none');

plus d'un an il y a | 0

Réponse apportée
i need help for this one please...i need to add each element of matrix A to corresponding element in matrix B
Hi @Rozh Thats all? a = ones(5); b = rand(5); c = a+b;

plus d'un an il y a | 0

| A accepté

Réponse apportée
Calling linkaxes on uiaxes objects makes plot contents disappear when using uigridlayout
Hi @Ted Londner This is really wierd! well, I tried your code. It looks like some rendering problem.. Anyhow - add the next 2...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How to call a function with arguments containing "." in "run" function?
Hi @Mudit Garg. You are correct: Matlab tries to look for a program with this name. A simple solution to overcome this issue ...

plus d'un an il y a | 1

| A accepté

Réponse apportée
3D plot matrices
Hi @Ludwig Attached is my solution; % Power levels: row1 % temperatures : row2 M100 = [19.8 29.305 38.425 48.37; 4.9 7.4 10...

plus d'un an il y a | 0

Réponse apportée
string joining without inverted commas and variable pass in string.
Hi @Paramjit Yadav 1st - use a single 'postrophe': ' instead of " I have created a simple function that returnes the valu...

plus d'un an il y a | 0

Réponse apportée
Variables cannot be recognized in app designer
Hi @Xiangfeng I've just tried it, It works 100% OK Look @ the screenshot (attached) What you must make sure is that you do...

plus d'un an il y a | 0

Réponse apportée
left and right sides have a different number of elements.
Hi @Luca Re This is simple - since the 'i' is a logical indexing vector and is not all 'true' length(find(i)) % == 5948 Thus:...

plus d'un an il y a | 0

Réponse apportée
exportgraphics with 'patch' crashing Matlab 2024a
Hi @DANILO ALARCON When I made 't' smaller (t = 0:0.001:2;) - it ran smoothly, When I enlarge it (t = 0:0.001:10;) and run - ...

plus d'un an il y a | 0

Réponse apportée
How to produce an array that displays the common data values in other arrays?
Hi @Jacey Your question is not clear enogh I have changed a,b &c to hold also other values than 0,1 The result is : "ind" ho...

plus d'un an il y a | 0

Réponse apportée
counter that will count the input 1. If the input signal goes to 0 then the counter should reset.
Hi I have created a dummy "signal" variable that gets the value True or False. Hope this fits your needs counter = 0; for i ...

plus d'un an il y a | 0

Réponse apportée
Book recommendations for improving optimization, control and modeling different processes in MATLAB
Hi Take a look @ the next 2 links. You might find what you are looking for https://www.mathworks.com/academia/books/accelerat...

plus d'un an il y a | 0

Réponse apportée
Opening of serial port during GUI formation.
Hi I have enhanced your class: Added serial_port to the properties: properties fig daq UI ...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Color change in plots
Hi I have seen your attached fig (better to attach (also) a *.png file as @Image Analyst commented Anyhow - you use "shadedErr...

plus d'un an il y a | 0

Réponse apportée
Overlap a webcam image and a heatmap.
Hi. There is a similar question. Please look @ https://www.mathworks.com/matlabcentral/answers/295620-how-can-i-overlap-two-ima...

plus d'un an il y a | 1

Réponse apportée
Image processing for pattern restoration
Hi Finiding the 4 corners of the rectangle - is very easy (looking for minimum/maximum non zero index on each dimention) Here ...

plus d'un an il y a | 1

| A accepté

A soumis


eval_test_list
- e-z running a test list

plus d'un an il y a | 1 téléchargement |

0.0 / 5

Question


retrieve mat-file version for v7.0
Hi Referring https://www.mathworks.com/matlabcentral/answers/47013-retrieve-mat-file-version?s_tid=sug_su We can tell the mat-...

plus d'un an il y a | 1 réponse | 0

1

réponse

Réponse apportée
error when using {}
Hi What you are doing is wrong: You have a variable called "Periodandfrequencies" which is a "table" (defined on line #335 @ y...

plus d'un an il y a | 0

A soumis


save2
= exactly as builtin function "save", but variables can be sent to function directly (not as char)

plus d'un an il y a | 1 téléchargement |

5.0 / 5

Réponse apportée
keyboard short cut key for my customized script
Hi The next link might be what you are looking for: https://www.mathworks.com/help/matlab/matlab_prog/create-shortcuts-to-frequ...

plus d'un an il y a | 0

Réponse apportée
Finding small vector in big vector
Hi A small improvement where the sub-vector is found more than once... x = x(:)'; % Make sure data is a Row vector ix = strfi...

plus d'un an il y a | 0

Réponse apportée
there is error in plotting, how to resolve it?
Hi I see no problem for Matlab to plot "undefined" value 1st of al 0^0 in Matlab is 1 (try for yourself...) Undfined value ca...

plus d'un an il y a | 0

A soumis


bitset_multi
Multiple simultaneous bit set

plus d'un an il y a | 1 téléchargement |

0.0 / 5

Charger plus