Respondida
How do I selectively write from struct to excel
whos -file mystruct load mystruct whos mystruct head(mystruct) A=table2array(rows2vars(mystruct)); whos A A(1:10,:) B=cel...

más de 3 años hace | 0

| aceptada

Respondida
How to identify, if the variable is an array or not in a given MATLAB code?
_"In the above code, is theta1(n), theta2(n), theta1_hat(n), theta2_hat(n) are arrays or not?"_ As others have noted, in MATLAB...

más de 3 años hace | 0

| aceptada

Respondida
Filter data by flag columns
load Lw %whos Lw Lw=addvars(Lw,datetime(Lw{:,1:6}),'NewVariableNames',{'Time'},'After',{'Second'}); Lw=removevars(Lw,[1:6]); ...

más de 3 años hace | 0

Respondida
How to change my matlab code. Is has no error in its present form.
To run all possible permuations doesn't need anything but to evaluate the distances for each sequence; there's nothing "best" ab...

más de 3 años hace | 0

Respondida
How to manipulate colors in plot for array?
"If you run this code, ..." Of course, we can't run this code because we don't have the data needed...but, to solve your proble...

más de 3 años hace | 0

Respondida
trying to use the dir / cd(dir) function, "error using cd. unable to change current folder to...(name is nonexistent or not a folder)" message appears
dir = 'C: \Users\X\Documents\school\Labdata.xlsx' ; Don't use dir as a variable name--it's a builtin function. Use something m...

más de 3 años hace | 0

| aceptada

Respondida
plot two arrays as y and x axis in matlab app designer
Show us what you've tried...this is trivial from the links I've shown you before. The only issue is you will have to convert th...

más de 3 años hace | 0

| aceptada

Respondida
Why I am not able to get x and y labels after merging two subplots?
The X,Y labels aren't objects, they're properties that aren't carried over; why, precisely, I don't know; just the way copyobj b...

más de 3 años hace | 0

| aceptada

Respondida
accelerometer data shows nothing in FFT
d=readmatrix('usb_data_100hz2.17th.txt'); N=100; t=d(:,1)-d(1,1); plot(t(1:N),d(1:N,2)) xlim([t(1) t(N)]) dt=diff(t); [mea...

más de 3 años hace | 0

Respondida
how to create a combination of excel values in matlab
t=array2table([8 8 1;11 11 2].','VariableNames',{'V1','V2'}); % simulate table (next time attach the file) M=[t.V1 t.V2]; ...

más de 3 años hace | 0

Respondida
how to create a combination of excel values in matlab
M=[35 10 2;48 20 23].'; [m,b,e]=ndgrid(M(1,:),M(2,:),M(3,:)); v=arrayfun(@(m,b,e)m.*b.^e,m(:),b(:),e(:)) Surely an exponent o...

más de 3 años hace | 0

Respondida
Hi, can you help me fix my code? How can I convert this to a matrix using if/while/for statements?
Use the power of MATLAB; it is, after all, MATrixLABoratory... format short e; format compact P=2; % power range -- use...

más de 3 años hace | 0

Respondida
How to save uitable & uifigure into pdf file?
Since R2021b, see exportapp which will include uicontrols; prior functions could not. In the original, gcf doesn't return the h...

más de 3 años hace | 0

Respondida
How to generate report from matlab app designer
See exportapp

más de 3 años hace | 0

Respondida
i get a couple of errors from my code. I am trying to see if there is an interrelation b/w brightness and counts. I have 2 independent varibles which are device and mode.
detectImportOptions lets you fix the input interpretation issues. Once you have the data in the table, use it instead of creati...

más de 3 años hace | 0

| aceptada

Respondida
Plotting a figure from a matrix
A=[1 2; 2 3;2 4;3 5; 5 6; 6 7]; G=graph(A(:,1),A(:,2)) plot(G)

más de 3 años hace | 0

| aceptada

Respondida
how to plot two-column text file of the energy spectra
data=readmatrix('point1.prn.xlsx'); whos data plot(data(:,1),data(:,2)) Seems easy enough...

más de 3 años hace | 0

Respondida
Why does my complied MATLAB .exe give me the same output every time I run the standalone application?
The location of file being opened isn't same in .exe as in the IDE. Try adding a file dialog message that displays the current ...

más de 3 años hace | 0

| aceptada

Respondida
I get complex numbers while using "acosd" function
GRD_u=[-0.6372,1.7170]; A_s_uniqe=[0.3479,-0.9375]; y=acosd(dot(GRD_u,A_s_uniqe)/sqrt(sum(GRD_u.^2))/sqrt(sum(A_s_uniqe.^2))) ...

más de 3 años hace | 1

Respondida
How to calculate the date 0.25 years after the date of January 15, 2020
"In matlab document ,declare 'years' fuction do not count leap days ,If count leap days use ‘calyears’,But calyears do not accep...

más de 3 años hace | 0

Respondida
Scaling the X and Y axis of a matlab histogram.
",,, read the file and "broke" it into three data arrays by using the following code" file = readtable("slprj/data.csv", 'Prese...

más de 3 años hace | 0

| aceptada

Respondida
copy data from work space In a compact way
See save, load to get persistent data saved as file. There is no way to put constant data into a variable in the editor as text...

más de 3 años hace | 1

Respondida
uidropdown : how know indices in item?
The index to the selected item is in the <InteractionInformation object> of the dropdown component. The object is available to ...

más de 3 años hace | 0

| aceptada

Respondida
adding third y axis to the plot
See the <FEX submission addaxis>

más de 3 años hace | 0

Respondida
How to calculate the date 0.25 years after the date of January 15, 2020
t = datetime(2020,1,1); leapy=t+calmonths(3)

más de 3 años hace | 1

Respondida
repmat vs repelem in code generation
"configNames.txt and configValues.txt contain a line with entries MaxTrackLim and 10 respectively" But your code contains MaxT...

más de 3 años hace | 1

Respondida
Updating legend for a plot with markers and errorbar
x = 1:5; y = 3*x; err = std(y); plot(x,y,'k-o','MarkerFaceColor','green'); hold on errorbar(x,y,err,'Color','k'); hold off...

más de 3 años hace | 0

Respondida
close figure: return value
vv=figure(); %%it's an example but i used countodown timer What for? and without knowing what that was set for and...

más de 3 años hace | 1

Respondida
Have legend reflect multiple marker sizes
The legend has been made mostly opaque in recent versions; it used to be you could get your hands on the axes upon which it was ...

más de 3 años hace | 0

| aceptada

Respondida
close figure: return value
Use isvalid hF=figure; isvalid(hF) delete(hF) isvalid(hF) exist('hF','var') clear hF exist('hF','var') Or, put the refer...

más de 3 años hace | 3

Cargar más