Réponse apportée
Looping through object array, possible to get an iterator to index into the object array?
"The MATLAB way" would be to write isConditon=(EvaluateLogicalExpressionOverTheRange); myObjectArray(isCondition)=[]; or the ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Color Scatter plot based on values in another column
You can't use such a grouping as is, create a grouping variable... edges=[0.5 1.5:0.5:3.5 inf]; g=discretize(Z); hSC=scatter(...

presque 4 ans il y a | 0

Réponse apportée
How Timelines Unify in subplot
fn1=websave('compound_tide_1516_data_wl_3.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1134780/compound_...

presque 4 ans il y a | 0

Réponse apportée
Plot boxplot/boxchart outliers in different colors by goups
fn=websave('sub_table.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1134300/sub_table.mat'); load(fn) i...

presque 4 ans il y a | 1

Réponse apportée
Is it possible to create such a Visualization in Matlab?
With all the amenities, it'll take a fair amount of effort, although one could undoubtedly create a crude replication of the wal...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can I read rows from a CSV outside of datalines using readtable
"Do I just have to run textscan or readtable again to read those two lines separately?" Yes, unfortunately readtable doesn't ha...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to find parent uifigure for a child several layers down
" I want to avoid having to pass the figure handle down through each layer." In an app, data are all global anyway, so save the...

presque 4 ans il y a | 0

Réponse apportée
How can I change rows that appeared more than once to missing rows
A=[ 2005.00 1.00000 0.000000 0.000000 0.000000 2005.00 2.00000 0.000000 0.000000 0.000000 2...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Irregular Arrays for fixed.Interval Objects
Never heard of them, but never used/don't have the FixedPoint TB ... all my micro work occurred way before any of these toolsets...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Stacked plot graphics, trying to color multiple lines on one y-axis.
There's an array in the <'StackedLineProperties'> gotten to by the links in the "See Also" section of the documentation.

presque 4 ans il y a | 0

| A accepté

Réponse apportée
plotting 4 by 1 tiles using tiledlayout function do not produce figure properly
Well, there's only so much room in a default figure and as Dolly Parton told Johnny Carson one night, "You can't put 10 pounds o...

presque 4 ans il y a | 0

Réponse apportée
Combining existing figures, each in its own tile
See copyobj It's pretty easy if just copying an axes and its content to a new figure; when it's a new axes that's been created ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how to input data into an array from csv files in a for loop
You loop above would work except you use the variable na as both a dynamic file name to read and then overwirite it with the ret...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
interpolate (extrapolate?) the values in between two matrices using existing data
A = [1, 2, 3, 4, 5; 0.3654, 0.3634, 0.3663, 0.3665, 0.3677]; B = [16, 17, 18, 19, 20; 0.4653, 0.4636, 0.4652, 0.4620, 0.4715];...

presque 4 ans il y a | 0

Réponse apportée
Using regexpressions with 'dir' function
"I woudl like to know if it is possible to use reg expressions with a 'dir' function." Nope. Unsupported by the OS; "filename ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Resize only height, not width of spectrogram
You don't show how you're trying the resize operation but spectrogram(...) plots into the current axes and if you size the axes ...

presque 4 ans il y a | 0

Réponse apportée
Customise colorbar labels (exponent)
@Star Strider is on the right track; the colorbar numeric ruler handle is hidden, however, but it is there and writeable -- For...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Looking to find data in a spreadsheet via user prompts
For the above correlation (or any similar that is linear in the two variables), you can simply compute the case ID; you don't ne...

presque 4 ans il y a | 0

Réponse apportée
Hold function combining graphs
Don't use hold on for separate plots, it's specifically to add more to a given figure/axes. Insert figure instead, before eac...

presque 4 ans il y a | 0

Réponse apportée
How to force textscan to include the custom EOL character
x=repmat(['@abc:1:abc:1:2:3:4\ndef:1:abc:1:2:3:4\n'],1,1e7); tic; y=textscan(x,'%s','EndOfLine','@'); y=y{1}; t(1)=toc; y=...

presque 4 ans il y a | 1

Réponse apportée
Iterating through a dataset and creating a vector with according values
Rarely need loops for such things as this with MATLAB; either logical addressing or table lookup almost always comes to the resc...

presque 4 ans il y a | 1

Réponse apportée
Saving a 3D matrix in through FOR LOOP and plot this matrix with error bar with error bar
R=zeros(numel(row),numel(col),numel(sl)); % preallocate ... R(C,b,a)=myfunction(...); ... is the brute force way using...

presque 4 ans il y a | 0

Réponse apportée
How do I subtract values from one table to another based on conditions, without a loop ?
Just get creative -- the function doesn't have to be one of the named ones... tLessBgkd=grpstats(SpaceTimeTemp,["LatBin","LonBi...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
fitting data form a matrix using loops
No real deal...your first part is somewhat more of a pain since you're averaging over a variable number of columns -- if it's a ...

presque 4 ans il y a | 0

Réponse apportée
Find min and max value of vector without using built-in function
... minval=maxval; ... if ... ... elseif A(i) < minval %%% HERE'S YOUR PROBLEM...SEE IT??? ... You misse...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
pwelch finds two-sided PSD at carrier frequency
"...I get a mirrored PSD around fx, ... Why...?" Because in [psdi,fri] = pwelch(it,[],[],(fx-5*W:10^6:fx+5*W),fs); you specif...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Why is my table displaying 1x1 in workspace but displays actual values in command window?
months = (datetime(1961,01,01):calmonths(1):datetime(2022,06,30)).'; a = table(randn(size(months))); TB = a(1:end,1); whos mo...

presque 4 ans il y a | 0

Réponse apportée
Units type 'characters' not suppoerted for uitable on uifigure
Indeed, TMW changed the documentation to try to force the use of uifigure instead of figure it appears, and in doing so rearrang...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Codes (activex..) for Copy graphs (figure) from Matlab to Excel
I can't believe this ever worked -- there's been no file associated with the COM object in this code by itself. Unless the conn...

presque 4 ans il y a | 0

Charger plus