Beantwortet
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...

mehr als ein Jahr vor | 3

| akzeptiert

Beantwortet
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])...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
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'; ...

mehr als ein Jahr vor | 1

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

Beantwortet
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;

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
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...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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:...

mehr als ein Jahr vor | 0

Beantwortet
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 - ...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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 ...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
Opening of serial port during GUI formation.
Hi I have enhanced your class: Added serial_port to the properties: properties fig daq UI ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 1

Beantwortet
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 ...

mehr als ein Jahr vor | 1

| akzeptiert

Gesendet


eval_test_list
- e-z running a test list

mehr als ein Jahr vor | 1 Download |

0.0 / 5

Frage


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-...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
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...

mehr als ein Jahr vor | 0

Gesendet


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

fast 2 Jahre vor | 1 Download |

5.0 / 5

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

Gesendet


bitset_multi
Multiple simultaneous bit set

fast 2 Jahre vor | 1 Download |

0.0 / 5

Mehr laden