Réponse apportée
Error using readmatrix - Unable to determine range. Range must be a named range in the sheet or a single cell within 'XFD1048576'.
Given that it appears readmatrix is fatally flawed for you use case, try something like First = 1000e3; Last = 1200e3; L=Fir...

environ 6 ans il y a | 0

Réponse apportée
num2str default format
'%.5g' is default format iirc what num2str does and the way %g counts precision.

environ 6 ans il y a | 1

Réponse apportée
Multiple selection of data (dates,months,days,hours)
Attach text that folks can do something with instead of pictures...or just attach the .csv file itself. Use split to break the ...

environ 6 ans il y a | 0

Réponse apportée
Error using readmatrix - Unable to determine range. Range must be a named range in the sheet or a single cell within 'XFD1048576'.
"Worksheet and workbook specifications and limits Feature Maximum limit Open workbooks Limite...

environ 6 ans il y a | 1

Réponse apportée
How to rotate the annotation text box?
Yes, as both Answers you referred to note specifically you can't rotate an annotation textbox and to use text object or textarro...

environ 6 ans il y a | 1

Réponse apportée
I want to create random number and convert that number to milliseconds to hours , minutes , seconds ,
randmsec=milliseconds(randi(1E6,10,1)); >> randmsec.Format='hh:mm:ss.SSS' randmsec = 10×1 duration array 00:08:25.95...

environ 6 ans il y a | 1

Réponse apportée
Find the index of the first integer of an array in another array
Easier to find repeated patterns with string pattern searches than as vector arrays-- ix=strfind(sprintf('%d',ismember(B,A)),re...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
How to plot a table in a way that first column and first raw are x and y axis?
There is no data for the (0,0) coordinate so it can't be in the X,Y vectors---and the Z array must be size(Z)-->[m,n] where X,Y...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How can I retime my timetable with a 10days timestep?
Read the documentation... TT2 = retime(TT1,'regular',method,'TimeStep',dt) calculates regularly spaced row times using the time...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Is there a faster alternative for Cell array?
Just store the class data with the position/time variable in 2D array. Use grouping variables to process by class either singl...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
How can I extract matrix without NaN values
A1=A.'; B1=B.'; % so can operate by row instead column... isf=isfinite(B1); >> B1=reshape(B1(isfinite(B1)),4,[]).' B1...

environ 6 ans il y a | 1

Réponse apportée
Error combining splitapply and regress
First argument is just a function handle or an anonymous function -- you mixed metaphors by trying to call a function and call t...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Select matrices with nonzero rows from a bigger matrix ?
Any number of these kinds of Q? on Answers -- under "runs" or any number of other terms...but, it's pretty simple to code from s...

environ 6 ans il y a | 1

Réponse apportée
Unrecognized function or variable 'filenames'. Error in pengujian_sistem (line 4) jumlah_data = numel(filenames);
filename = dir(fullfile(image_folder, '*.jpg')); jumlah_data = numel(filenames); You returned the variable filename (singula...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
What is going wrong with this code
Alternate solution: ix=kron([1:numel(0:13)/2].',ones(2,1)); n=accumarray(ix(c+1),ones(size(c))); >> n n = 14 15 ...

environ 6 ans il y a | 0

Réponse apportée
What is going wrong with this code
>> n=arrayfun(@(i1,i2) sum(iswithin(c,i1,i2)),0:2:13,1:2:13) n = 14 15 10 14 14 17 16 >> type iswithin ...

environ 6 ans il y a | 0

Réponse apportée
Finding common values in a matrix and create a chain
Same idea, different cat skinned to get there... u=unique(A(:,2:end)); % look for the...

environ 6 ans il y a | 0

Réponse apportée
How can I perfom an interpolation?
time = linspace(-1, 1, N); frames = cat(4,zeros([size(codeAlpha),numChannels,bufferSize])); for i = 1:length(time) frames...

environ 6 ans il y a | 0

Réponse apportée
Is it possible to use a subplot grid to obtain as good or better resolution than that provided by the stackedplot function?
I've never tried to build anything with that many traces as separate subplots but I don't see why you couldn't have the same res...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Convert different datetimes into one format
Bestest would be to fix the input source to use the same format but you can try some subterfuges to see if you can sneak by with...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Hat on letter on x/ylabel WITHOUT using LaTeX?
figure, plot(sort(rand(10,4))) % preliminaries... % engine hTxt=text(4,0.6,'x'); % location arbitrary for given dat...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to delete the first 2 rows (Headers) of a txt file ?
Well, once you've got the right content in memory, then just rewrite the file. But, specifically on that has some bearing on th...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
touchstone file could not be processed in matlab
For your specific data file in order to not have to modify the file, the following should return the data in usable fashion... ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to delete the first 2 rows (Headers) of a txt file ?
Or, readtable. But, starting with the above simply file=regexp(fileread('data.txt'), '\r?\n', 'split') .'; file=file(3:end); ...

environ 6 ans il y a | 0

Réponse apportée
Merge vector to matrix
In what form do you have the data to start with? If it's a file with the content of the document shown, then just read the file...

environ 6 ans il y a | 0

Réponse apportée
How can I use different sizes with text
Ayup...except you'll have to either write as a loop using sz(i) for each since 'fontsize' at the command level is global to all ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Error while using a function.I need parentheses in the function header but it wont allow me to do it.
No, don't need any parens (and remove the semicolon, too) in the function dummy argument list, those are surrogate names for the...

plus de 6 ans il y a | 2

Réponse apportée
How can I colour in different colours 2 rows of ylabel using Latex as interpreter?
Well, it finally dawned on me how to work around your particular wish... hTxt(1,1)=text(-0.1,0.55,{'$\tilde{\mu}_c$'},'Interpre...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Find the last NaN value in cell array and compare it with the next column
Yeah...the nonnumeric content of the cells containing hex strings changes things...those all return a logical array and not just...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Multiply nth elements of an array by an element of a different array?
I'll presume the answer to Cyclist's 2nd Q? is to be unchanged...and the other is just using different variables for the posting...

plus de 6 ans il y a | 1

| A accepté

Charger plus