Réponse apportée
creating a menu for a .MAT file.
Your data doesn't go into the menu; it is simply a selection mechanism for the user to pick a specific action; one then has to w...

plus de 5 ans il y a | 1

Réponse apportée
How do I convert dates from excel into Matlab
tData=readtable('yourfile.xlsx','ReadVariableNames',0); tData.Properties.Variablenames={'Day','Hour','WindDir','Speed'}; tData...

plus de 5 ans il y a | 0

Réponse apportée
How can a copy a MATLAB code into word?
See if doc publish leads to joy...

plus de 5 ans il y a | 0

Réponse apportée
how to set different xlabels for all subplots in for loop at once?
YLABS=["Fuel/g", "time/s","distance/m", ...]; % define the ylabel strings for i=1:length(DATA1(1,:)) hAx(i)=subplot(4,4,i)...

plus de 5 ans il y a | 0

Réponse apportée
Extract Data From Imported Excel Sheet Containing Specific Numeric Values
Rather than duplicating the same data in multiple places, use grouping variables to process the data by the desired categories/g...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Improve the performance of a function based on str2double
Variations upon a theme -- this is almost 2X as fast as my previous...here it times out as just a fraction ahead of the original...

plus de 5 ans il y a | 1

Réponse apportée
Position of two subplots with bar and plot charts
You're messing with the wrong thing -- it's xlim you want to make the same... ... figure hAx(1)=subplot(2,1,1); ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
problem with 'extract' function
What do you get when you type ver at command line? extract wasn't introduced until just now in R2020b so if you have a releas...

plus de 5 ans il y a | 1

Réponse apportée
Improve the performance of a function based on str2double
"Deadahead" solution without any attempt to use anything fancy...regular expressions are known to be expensive; I've never compa...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
extract data from table matlab
That's messy...that they didn't put the data into separate columns makes it rougher...almost do have to separate out the T senso...

plus de 5 ans il y a | 1

Réponse apportée
extract data from table matlab
More than likely you don't need to actually build a new table for each; instead use grouping variables to process the column by ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Storing Live streamed data
Open a file before beginning the process and write whatever it is that is wanted...formatted data is simple to read but bulky, s...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to position a table within a figure?
You can retrieve the figure position vector from which you can get the width and height of the figure (3rd and 4th elements, res...

plus de 5 ans il y a | 0

Réponse apportée
how to check all boxes in uitable column with a button?
Just put the code to set the column variable all to TRUE in the callback for your pushbutton...trivial example from uitable doc....

plus de 5 ans il y a | 1

Réponse apportée
How to transform a cell array, which contains dates but not in the datetime format, into datetime array
>> dt=datetime(tstr,'InputFormat','yyyy-MM-dd''T''hh:mm:ssXXX','TimeZone','America/Chicago') dt = 3×1 datetime array 08...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
unique is giving the same expression twice
I didn't notice the data attached for this case -- the same exercise as above shows: >> sort(categories(A)) ans = 29×1 cell...

plus de 5 ans il y a | 3

| A accepté

Réponse apportée
Substitue values with text
% create sample data table T=table(randi([30,70],10,1)+rand(10,1),'VariableNames',{'Early'}); T.Final=T.Early+(randi([-20,20],...

plus de 5 ans il y a | 0

Réponse apportée
Matching columns of timetables
ix=ismember(energy_tt.RowTimes,date_tt.Start_time_1); energy_tt.Power(ix) = 11; Also see the synchronize function

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I convert a multidimensional array to csv ?
csvwrite is deprecated in favor of writematrix for arrays but is not documented for table inputs (at least thru R2019b). Having...

plus de 5 ans il y a | 1

Réponse apportée
How can I re-open a closed figure from a stored plot handle?
No. All the plot_data array contains is the handles to the chart surface objects that were created by surf. However, even thou...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to change the xticketlabe of a bar chat
You can either just set xticks where you want them or use the x vector in bar if there are other than just ordinal positions for...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
smoothed scatter plot matlab like excel
fXY=fit(X,Y,'smoothingspline'); plot(fXY,X,Y,'b-') fXYv=fit(Xv,Yv,'smoothingspline'); plot(fXYv,Xv,Yv,'r-') Above needs Curv...

plus de 5 ans il y a | 0

Réponse apportée
How to read satellite data with .dim and .data folder in Matlab
I was looking for the support site for the source of the data -- generally there will be links to how to use the data with MATLA...

plus de 5 ans il y a | 0

Réponse apportée
How to read csv file containing text and numbers in the same cells
Wowsers! That's a nice file format for reading visually, but surely a pain to postprocess. Can you not set the machine up to o...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
How to check if a multi-column row of a matrix exists in another matrix
"...there are no easy, single line solutions to this." Au contraire, good buddy! :) >> C=A(~ismember(A,B,'rows'),:) C = ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or variable
As noted above I don't know for certain whether the Date2Num is just a missing m-file or an attempt to use a Python function. Y...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Monthly maximum in data
t = datetime(2018,1,1:500)'; rsq = [rand(500,1) day(t) month(t) year(t)]; Alternatively for the same data structure above: ma...

plus de 5 ans il y a | 1

Réponse apportée
How to do a Loop statement from cell to double?
Use ordinal categorical variables -- t1989=readtable('1989.xlsx','Range','10:40','ReadVariableNames',0); % get in a set of ...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Redefining a variable in a multidimensional array
There isn't a time vector explicitly stored in the 3D array; each slice(*) in the array is associated with the corresponding tim...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Forcing a scalar to be represented as a 1x1 vector
By the table in the documentation, >> jsonencode({c}) ans = '[4]'

plus de 5 ans il y a | 2

| A accepté

Charger plus