Réponse apportée
How to take average of matrices stored as cell array?
MATLAB is magic in such things... :) If your cell array is Irrad, then meanIrrad=mean(cat(3,Irrad{:}),3);

environ 5 ans il y a | 2

Réponse apportée
How to get specific rows in a text file and store it in a matrix?
One of about a zillion ways...deliberately illustrating some newer features... opt=detectImportOptions('lageos1.txt','CommentS...

environ 5 ans il y a | 1

Réponse apportée
How do I change the position of the axes permanently?
Taking a stab at the OP's meaning (thanks to the Crystal Ball having just been returned from the shop (yet) again...) Try set...

environ 5 ans il y a | 0

Réponse apportée
Speed up search for matching strings
Only need one loop and I'd guess it'd be faster as written above if you didn't bother to remove the found elements--I suspect th...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to delete specific values from matrix
>> A=randi(30,5,5) % sample array to illustrate ans = 23 4 7 27 8 9 15 23 ...

environ 5 ans il y a | 0

Réponse apportée
Largest column of a matrix
Try function v=maxivect(A) [~,ix]=max(arrayfun(@(i) norm(A(:,i)),[1:size(A,2)])); v=A(:,ix); end

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Why do I receive results mismatch in the FFT signal while using MATLAB built in FFT function? How can I able to rectify this?
If the fundamental frequency doesn't precisely match the frequency bins of the FFT, then the energy will be spread over multiple...

environ 5 ans il y a | 0

Réponse apportée
Improving the Resolution in FFT
Look at documentation for nextpow2

environ 5 ans il y a | 0

| A accepté

Question


enumeration Fails with get(), set() arguments
classdef XlBordersIndex < int32 enumeration xlDiagonalDown (5) xlDiagonalUp (6) xlEdgeLeft ...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to replace cell values with consecutive values related to their index
c=[{cell(1,1)} {cell(1,5)} {cell(1,3)}]; % original cell array % engine n=cellfun(@numel,c); v=1:sum(n); i1=1; for i...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How can I use horizantal lines instead of vertical lines to connect certain points?
"replace the red and green lines with a horiz[o]ntal bar" xb=[x(WS_new_array) flip(x(WE_new_array))]; yb=ylim*ones(size(xb)); ...

environ 5 ans il y a | 0

Réponse apportée
Regarding reading mulitple csv file with specific rows
Read the headerline containing the number of channels in the dataset so you can compute the number of headerlines before the dat...

environ 5 ans il y a | 0

| A accepté

Question


Why is "MODAL" not...
% Make sure user doesn't have file locked/open in another process first... % Excel creates hidden file with "~$" pr...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Array idx bug when resizing it
The code needed to see the problem boils down to-- xvals=[]; for i=1:5 xnew = (xold-xold^2)*beta; xold = xnew; ...

environ 5 ans il y a | 0

Question


Changes to Controls Not Always Reflected in App Designer
Since the app has no other need for visual output (no graphics, etc.), I disable the pushbutton that kicks off the process and c...

environ 5 ans il y a | 1 réponse | 0

0

réponse

Question


App Designer Figure Properties
This is a really basic question but I've been unable to figure out from the doc or in the app designer interface -- Is there so...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Boxplot using cell array where each cell has different size
Fill each cell with NaN to the same size vector and then convert to an array. boxplot will ignore the NaN missing value indicat...

environ 5 ans il y a | 2

| A accepté

Réponse apportée
Matrix to string, filled with zeros
>> string(num2str(A,'%04d')).' ans = 1×11 string array "9998" "9999" "0000" "0001" "0002" "9997" "99...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Multiple labels on xaxis
That's one way; I'd just rearrange the sizes/locations (position property) of the subplots to collapse the bottom two down so no...

environ 5 ans il y a | 1

Réponse apportée
How to read in multiple text files, each containing multiple lines/formats?
Very difficult without example files to see the nuances, but the two records above I'd handle more like-- d=dir(fullfile('archi...

environ 5 ans il y a | 0

Réponse apportée
Turn number to datetime
>> dtn=datetime(string(tn),'InputFormat','HHmmssSSS','Format','HHmmss.SSS') dtn = datetime 101416.517 >> NB: Howeve...

environ 5 ans il y a | 0

Réponse apportée
Matlab2tikz, the tick labels of the x-axis in bold
[hAx,hLine1,hLine2] = plotyy(dataTime_s,pwm_ar_s,dataTime_f,deg_ar_f); linkaxes(hAx,'x') % link the two x...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Fill a timetable outside the gaps
Illustrate the concept -- tt.Var1=categorical(tt.Var1); % convert Var1 to categorical as rightfully is dRef=...

environ 5 ans il y a | 1

Réponse apportée
Fill a timetable outside the gaps
K>> rowfun(@sum,t,"InputVariables",'Var2','GroupingVariables',{'Time','Var1'}) ans = 6×3 timetable Time Var1 ...

environ 5 ans il y a | 0

Réponse apportée
randomly select elements of an array without repeat and create a matrix with these elements as rows
"1 to n. I want to choose m integers withiut replacement p times out of these integers, " What does the above mean, precisely? ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to speed up the following Matlab script? Can anyone suggest me to speed up the process?
Since you're doing all the work only to return coherence, look at doc mscohere to return the coherence directly with all the ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
At least w/ Firefox, recently the scroll wheel acts to reduce the size of the response textbox such that what is being typed get...

environ 5 ans il y a | 0

Réponse apportée
Control decimal places of contour labels
Yet another case where TMW (The MathWorks) has been too aggressive in hiding stuff that clearly users would want to and should b...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
How to read the specific colums from 12 excel files in a folder and then plot it
Other than superfluous stuff that doesn't need to be in the loop, nothing appears to be wrong in the basic code... Oh! Now I s...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Building a "Typical Year" from averaging daily-hourly data over several years
<AnsweredComment> OK, the conversation in the other thread turned into more interesting one than I initially anticipated; I tho...

environ 5 ans il y a | 1

| A accepté

Charger plus