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

10 jours ago | 0

Answered
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

10 jours ago | 0

| accepted

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

10 jours ago | 0

Answered
Improving the Resolution in FFT
Look at documentation for nextpow2

13 jours ago | 0

Question


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

14 jours ago | 0 answers | 0

0

answers

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

17 jours ago | 0

| accepted

Answered
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)); ...

17 jours ago | 0

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

19 jours ago | 0

| accepted

Question


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

20 jours ago | 1 answer | 0

1

answer

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

20 jours ago | 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...

23 jours ago | 0 answers | 0

0

answers

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

24 jours ago | 1 answer | 0

1

answer

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

27 jours ago | 1

| accepted

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

29 jours ago | 0

| accepted

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

29 jours ago | 1

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

30 jours ago | 0

Answered
Turn number to datetime
>> dtn=datetime(string(tn),'InputFormat','HHmmssSSS','Format','HHmmss.SSS') dtn = datetime 101416.517 >> NB: Howeve...

30 jours ago | 0

Answered
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 un mois ago | 1

| accepted

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

environ un mois ago | 1

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

environ un mois ago | 0

Answered
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 un mois ago | 0

| accepted

Answered
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 un mois ago | 1

| accepted

Answered
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 un mois ago | 0

Answered
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 un mois ago | 1

| accepted

Answered
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 un mois ago | 1

| accepted

Answered
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 un mois ago | 1

| accepted

Answered
How to read this kind of info out of a txt file and post them into Excel files?
Basically, just read the file record-by-record searching for the matching header strings and when find a section header, then re...

environ un mois ago | 0

| accepted

Answered
How to average monthly data using a specific method in Matlab?
There may be a more clever way, but brute force seems straightforward enough... A=reshape(vectorA,3,[]); ...

environ un mois ago | 0

| accepted

Answered
How to retrieve multiple values from a 3D array
Ignoring the excessively verbose variable names that keeps code from being visible without scrolling or breaking line and thereb...

environ un mois ago | 0

| accepted

Answered
Computing the number of variables belonging to each data type
How about n_cl=countcats(categorical(varfun(@class,M,'OutputFormat','cell')))

environ un mois ago | 0

| accepted

Load more