回答済み
Convert cell array to excel - problem with nested cells
Try something like l=0; for i=1:size(M2,1) for j=1:size(M2,2) l=l+1; writecell(M2(j,i),'M2.xls','Range',"A"+...

4年以上 前 | 0

| 採用済み

回答済み
Removing automatic variable names in array2table or writetable and adding some text to the header of output file
As @Ive J points out, define variable names as desired. NB there's no need for intermediate variables here, either--if you alre...

4年以上 前 | 0

回答済み
how to plot each bin of data individually?
As per usual, would be easier to demonstrate with some real data to work with...but tD=table(repmat([0:23].',4,1),randi([150 20...

4年以上 前 | 0

| 採用済み

回答済み
Why does the unique() function give an unexpected extra output here?
>> load ..\Answers\datestrings_of_problem_times.mat >> whos d* Name Size Byte...

4年以上 前 | 1

| 採用済み

回答済み
Excel MMULT on MATLAB for different matrix dimensions.
MATLAB being defined as the MATrix LABoratory follows conventional matrix algebra rules -- >> A=[0.29;-1.55;2.09;0.782]; >> R=...

4年以上 前 | 1

| 採用済み

回答済み
Array indices must be positive integers or logical values.
In ... i=0; while dt<ts; d1=g-0.5.*rho.*V0.^2*(s/m).*Cd; phiAvg=d1; V(i)=V0+dt.*phiAvg; V0=V; t(i)=t...

4年以上 前 | 1

回答済み
How to fix: Index Exceeds Matrix Dimensions.
>> w1{1}=fix(randi([-10000,10000],3,1)); >> whos w1 Name Size Bytes Class Attributes w1 1x1 ...

4年以上 前 | 0

回答済み
Replace text in a struct with new values
The problem is the string you're building for the substitution doesn't match the actual string in the struct substring owing to ...

4年以上 前 | 0

回答済み
different number of delimiters error using readtable function
Use import options object -- although to write a fully generic import code you'll have to scan the file to find the number of he...

4年以上 前 | 1

| 採用済み

回答済み
How can I include absent group names in table grouping results?
Well, unless the data are in the table, there's not going to be anything for groupsummary to operate over to tell it those other...

4年以上 前 | 0

回答済み
I can't understand the following MATLAB code documentation
This isn't documentation, this is actual MATLAB code. The first section is a script; the second is a function which is called b...

4年以上 前 | 1

回答済み
How to show that calculation is going in MATLAB App
An outline of the progress dialog implementation I used for one app... % Button pushed function: UpdateButton function ...

4年以上 前 | 0

回答済み
How to make an if-statement that finds whether a 1x5 column has 4 of the rows the value 0?
Just a somewhat pedantic comment on details of notation first -- If the matrix is 1x5, it would be matrix = [0 0 0 241 0] inst...

4年以上 前 | 0

回答済み
How to extract data stored in a matrix and in a specific range of columns whose number is stored in another matrix?
It would be much simpler if you would use a table for each variable and include the ParticipantID as a variable instead. Howeve...

4年以上 前 | 0

回答済み
Matlab default font monospace is not a wise choice
Can't say as it's been a problem for me, no... But, you can change it to anything installed on your system -- go to Preferenc...

4年以上 前 | 0

| 採用済み

回答済み
Converting 1D indexed array to 2D matrix
You don't need to convert the linear addresses to indices to assign them to the array. If you have, indeed, segregated the alti...

4年以上 前 | 0

| 採用済み

回答済み
How to get such legend in MATLAB?
Use the 'DisplayName' property for the desired line types to be plotted -- you'll need two lines drawn with just the solid line ...

4年以上 前 | 0

回答済み
How to sort the rows of a cell?
s=sort([x{:}]); % where x is the cell array

4年以上 前 | 0

| 採用済み

回答済み
Why is signal amplitude so low after applying FFT?
Several issues here -- the first being the RMS value masks the signal amplitude with the DC value unless you first detrend the t...

4年以上 前 | 0

回答済み
Bar chart samples are shuffled
As @Star Strider says, categorical variables are not ordinal by default and are valued by lexical sorting. To fix X = {'Pristi...

4年以上 前 | 1

| 採用済み

回答済み
Selecting random cells in a matrix without repetition
N2Choose=20; R=M(randperm(numel(M),N2Choose)); ERRATUM Stupid auto-complete put the silly parens in instead of letting me whe...

4年以上 前 | 0

| 採用済み

回答済み
How do i add a for loop if command to a pre existing table
Begin learning to use MATLAB vector operations from the git-go -- naming variables sequentially with a numeric suffix is almost ...

4年以上 前 | 1

回答済み
Feeding index returned by find in another matrix
>> a=[NaN,NaN; NaN,2; 11,NaN]; >> a a = NaN NaN NaN 2.00 11.00 ...

4年以上 前 | 0

| 採用済み

回答済み
Insert "epsilon dot" in a figure title with tex interpreter (not latex)
No; the MATLAB implementation of TeX uses the defined special characters and the limited modifiers of ^ and _ for super/subscrip...

4年以上 前 | 0

回答済み
Put axis label in their respective middle (3D plot)
... mesh(x,y,z); hXL=xlabel('time[sec]'); % default label, save handle hXL.Position=hXL.Position+[0.5 0 0...

4年以上 前 | 0

| 採用済み

質問


Setting focus in AppDesigner
I'm setting a TextArea object to be editable with a menu selection to allow a field to be updated by the user. The callaback to...

4年以上 前 | 2 件の回答 | 1

2

回答

回答済み
Why is it not possible to increase the excel readtable range?
The error message doesn't have anything to do with the Q? that was posed as written and looked at above, however...it's got to ...

4年以上 前 | 0

| 採用済み

回答済み
Select rows of timetable based on Month range
To use the numeric months, wintertime = [1:3 11:12]; % [start, end] of desired months TTwinter = TT(ismember(month(TT.Tim...

4年以上 前 | 0

| 採用済み

回答済み
Get maximum values across a cell array with multiple indexing.
Use grouping variables -- there's still a looping construct inside, of course, but you don't have to write it explicitly... >> ...

4年以上 前 | 1

| 採用済み

回答済み
strsplit: the deliminator on both sides was still kept but not removed
WAD (Working As Designed) >> a = strsplit(' aa bb cc ',' ') a = 1×5 cell array {0×0 char} {'aa'} {'bb'} ...

4年以上 前 | 1

| 採用済み

さらに読み込む