Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

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

más de 5 años hace | 0

Pregunta


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

más de 5 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

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

más de 5 años hace | 2

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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,[]); ...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
Can I plot a line function, and a plot function under an if statement?
"can put a line and plot function under an if statement. ...? It works when I try it ..." It would seem you've answered your ow...

más de 5 años hace | 0

| aceptada

Respondida
Reading Specific numbers from a text file
fileID = fopen(filename); Cdata = textscan(fileID,'%f32 %f32 %f32','HeaderLines',5); % find the point coordi...

más de 5 años hace | 0

| aceptada

Respondida
How to protect arbitrary variable names
Functions have their own workspace although internal and anonymous functions share their context with the containing workspace.....

más de 5 años hace | 0

| aceptada

Respondida
displaying element of matrix
To use disp and have two decimal points, use format bank first, otherwise will get whatever precision is associated with the cur...

más de 5 años hace | 0

Cargar más