Risposto
How to fix "Failed to generate all binary outputs."
...WindowControlCoordination_SimulationAlgorithmModel.obj" "WindowControlCoordination_SimulationAlgorithmModel.c" In file incl...

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 2

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

Risposto
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',...

oltre 2 anni fa | 2

| accettato

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

quasi 3 anni fa | 0

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 2

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

Risposto
How to fit lognormal distribution to a dataset which contains some zero values?
One analysis technique for daily rainfall modeling divides the problem into two parts -- a "wet-day" model that predicts rainfal...

quasi 3 anni fa | 0

Risposto
How to match the colors in the colorbars across two plots such that the datapoints can be inferred consistently?
Be easier if you had attached the code to generate the figures so could mung on it directly, but something like % create first ...

quasi 3 anni fa | 0

Risposto
FFT of the resultant vector of an accelerometer
The x,y,z data already have a direction; it depends upon whether you want the individual components or the overall magnitude and...

quasi 3 anni fa | 1

| accettato

Risposto
Error trying to fit data to gaussian function: Inf computed by model function, fitting cannot continue
d1=readmatrix('data_working.txt'); d2=readmatrix('data_error.txt'); plot([d1 d2]), xlim([1 numel(d1)]), legend('Working','Erro...

quasi 3 anni fa | 1

Risposto
Is it possible to create a bar graph with different x-Axis scale/labeling?
Set the first/last x values to min(x)-2/max(x)+2, respectively, then set the ticklabels for those two manually. y = [2 2 3; 2 5...

quasi 3 anni fa | 0

| accettato

Carica altro