답변 있음
How to transform a table to a matrix?
xlsread has been deprecated because it is more difficult to use with irregular data than the table. You can't put different dat...

2년 초과 전 | 1

| 수락됨

답변 있음
Can I draw a section of a polar plot?
Well, sorta', but not totally generic. hPax=polaraxes('thetalim',[0 20],'thetazerolocation','top','thetadir','clockwise','rlim'...

2년 초과 전 | 0

| 수락됨

답변 있음
iterating a function within itself
Several issues here... function [A1,B1,C1,D1,NPI_new,CPI_new] =CSS_iterate(fdrpath1,sheetname,RepCondpath) [A,B,C,D,NPI,CPI]=A...

2년 초과 전 | 0

답변 있음
Plot multiple variables from table with different x axes
There's also no need to loop; use the array inputs version of stairs D_indices=[1:3:width(map1)]; % would be all; limit...

2년 초과 전 | 1

답변 있음
Back calculating Ki from test data
You can only have N-1 differences. See diff for "the MATLAB way"... For a loop, you simply start with j=2 instead of 1; done w...

2년 초과 전 | 0

| 수락됨

답변 있음
How to fix "Failed to generate all binary outputs."
...WindowControlCoordination_SimulationAlgorithmModel.obj" "WindowControlCoordination_SimulationAlgorithmModel.c" In file incl...

2년 초과 전 | 0

| 수락됨

답변 있음
How can I disable fminsearch function to print a warning message?
options = optimset('MaxIter',20); fun = @(x)100*(x(2) - x(1)^2)^2 + (1 - x(1))^2; x0 = [-1.2,1]; x = fminsearch(fun,x0,option...

2년 초과 전 | 2

답변 있음
New line after fprintf in a for/ while loop
Certainly the if...else...end clause itself has absolutely nothing to do with handling a newline in an fprint formatting string....

2년 초과 전 | 0

답변 있음
Error using readtable (line 318) Matlab R2021a
t=readtable('sub_1.xlsx'); head(t) t=readtable('sub_1.xlsx','numheaderlines',0,'readvariablenames',1); head(t) Seems just fi...

2년 초과 전 | 0

답변 있음
how to type word to the legend left?
hL=plot(randn(10,2)); hLg=legend('Std','Avg'); %pos=hLg.Position; %pos(1)=pos(1)-0.1; %hA=annotation('textbox',pos,'String',...

2년 초과 전 | 2

| 수락됨

답변 있음
semilogx() - x-axis - Increase scaling for lower frequencies - compress higher frequencies
The issue isn't the plotting scaling; it's the data content. Each of the triangular-looking traces in the reference plot goes f...

2년 초과 전 | 0

| 수락됨

답변 있음
How to resort every column of a 3d matrix?
L=-180:60:180 wrapTo360(L) [~,ix]=sort(ans) M=[1:3].*L.'; M=cat(3,M,2*M) M(ix,:,:) sortrows doesn't operate on 3D arrays s...

2년 초과 전 | 0

답변 있음
discrepancy between the p value obtained in a ttest2 on mac vs windows
Simply differences in underlying OS/compiler floating point rounding/underflow. Certainly 10^-49 (or 10^-16 or even 10^-10) is ...

2년 초과 전 | 1

답변 있음
Why low pass filtering requires long duration time signals?
It's pretty obvious why a lowpass filter would need longer time -- as the cutoff frequency is lowered, the output of the filter ...

2년 초과 전 | 0

답변 있음
Default argument expression with multiple outputs
Multiple output arguments must be unique variable names; just define the default for the specific name and it will refer to the ...

2년 초과 전 | 0

답변 있음
How can I sum a number of terms as a polynomial?
"Dead ahead" straightforward would be S=0; for i=1:n S=S+x^i/factorial(i-1); end Alternatively, vectorized could be i=1:...

2년 초과 전 | 1

| 수락됨

답변 있음
Convert UNIX NanoSeconds to DTG in Milliseconds
Ah! That simplifies the problem immensely; you've already passed the hard part. To do the initial request to sum over millisec...

2년 초과 전 | 0

답변 있음
Extract some rows of the matrix with the find command
Perfect application for a little utility function I keep around -- as a sidelight, I create and add to my MATLABPATH a "Utilitie...

2년 초과 전 | 0

답변 있음
How to use ActiveX to change MS Word Table properties
I've only done any extensive COM with Excel so I don't know the Word object model at all, but the biggest thing to remember is t...

2년 초과 전 | 1

| 수락됨

답변 있음
Fastest way to load data.
save does compression by default now which takes time as you've discovered. The absolute fastest albeit somewhat less convenien...

2년 초과 전 | 0

답변 있음
determine within cell the coordinates (rows/columns) having equal 3 numbers
[r,c]=find(cellfun(@(c)all(c==c(1)),out)); If there are none, the above will return [] empty results; taking off the find() wil...

2년 초과 전 | 0

| 수락됨

답변 있음
Why is the MATLABDriver name an empty string when I use ividriverlist?
https://www.keysight.com/us/en/lib/software-detail/driver/analog-demod--xseries-signal-analyzers-ivi-and-matlab-instrument-drive...

2년 초과 전 | 0

답변 있음
Importing .dat data and creating a matrix
"...that data and limit it by four points - creating a matrix - as follows: (11,5).....(21,5) (11,13)....(21,13)" I don't fo...

2년 초과 전 | 0

답변 있음
Error encountered when using Datastores on non-rectangular data sets
function bigDataTest(fileLoc) % This function takes in a folder and extracts all the data into MATLAB ds=spreadsheetDatastor...

2년 초과 전 | 0

답변 있음
Running same code, same Matlab version (2021b) on difference computers (8 different types) 7 produce same results only one is different.
There may yet be differences in the supporting runtime libraries that have been loaded on various machines by different software...

2년 초과 전 | 0

답변 있음
Create Mex files for Matlab, from .FOR files of Fortran
Which OS? For Linux, the GNU Fortran compiler is supported, for Windows and Mac only a recent version of the Intel compiler is ...

2년 초과 전 | 0

답변 있음
calculate sum month and annual
Read up on retime and timetable which lead into readtable and table2timetable All are "modern" MATLAB tools; the time-honored a...

2년 초과 전 | 2

| 수락됨

답변 있음
how do i add line to a pie graph
subplot(2,2,1) txt=string({['Avoids' newline 'Objects'];['Middle of' newline 'sidewalk'];['Stops' newline 'Often']}); normal_b...

2년 초과 전 | 0

답변 있음
Help using grid in nexttile and tiledlayout
The two lines set(gca,'YTick',[]); set(gca,'XTick',[]); remove the tick marks and thereby the ticklabels. Remove those and t...

2년 초과 전 | 0

답변 있음
Modify the color of a scatter3 plot
https://www.mathworks.com/matlabcentral/answers/233084-changing-color-of-the-points-in-scatter3?s_tid=answers_rc1-3_p3_MLT#answe...

2년 초과 전 | 0

더 보기