Réponse apportée
How can i concatenate two or more flaoting numbers to a single number without rounding them ?
s=sprintf('%g',n); s=strrep(s,'0.',''); s(s=='.')=[]; >> disp(s) 123451256401250014 >>

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
any way to plot scatter-line with different symbol
Not by controlling the 'marker' properties in a single scatter call, no, unfortunately. Those are global for the object. It's ...

plus de 7 ans il y a | 0

Réponse apportée
Median Value of specific data by index
xc=categorical(x(:,1)); % convert indices to categorical (not mandatory, sometimes convenient) [G,grp]=findgroups(...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plotting timetable data: how to add x-axis ticks, labels and gridlines on 1st and 15th day of each month
t=[datetime(2018,6,1):datetime(2019,3,1)].'; % build a sample dataset... tt=timetable(t,randn(size(t))+10); % j...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
How can I remove double and single quotations from multiple large .csv files located in the same directory efficiently?
To answer the last Q? first, "No, csvread can't read such a file." But, there's no reason at all to change the file format, jus...

plus de 7 ans il y a | 0

Réponse apportée
repeat rows in a matrix based on values in one column
u=unique(x(:,1),'stable'); % get the unique values in first column to work over; keep original order xx=[]; for i=numel(...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plotting Air Density as a function of altitude (in SI Units)
Just because you don't get an actual error doesn't mean calculations are correct -- you've got a discontinuity in the correlatio...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
Can I make a functions input a counter variable for a for loop
"So I have to make an input (SlotRounds) be used in a for loop..." Who says you "have to" do anything, specifically, about how ...

plus de 7 ans il y a | 0

Réponse apportée
How do I name a graph using a string with probplot?
titlestr=strcat('Number of VCSELs = ',num2str(size(data,2)),' Number of failures = ',num2str(NFail)) title('titlestr') ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
for loop produces a 103x1 array I need a 1x103 array.
Write P_S(ii,1)... But, why use a loop at all--use the vector functions in Matlab instead. I've not tried to decipher the RHS...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I Create a Matrix that connected to Excel using MATLAB
Have to know the structure of the file or write code to find what you want...I'll presume you can count columns... :) >> [n,t,r...

plus de 7 ans il y a | 0

Réponse apportée
FFT from CSV file
Follow the recipe provided precisely...you've doubled the DC and Fmax components so that the DC bias is shown as twice what it w...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Creating plot with 2 x axes
If you'll go through step by step, you'll see the problem doesn't occur until the second plot() call -- you didn't hold the seco...

plus de 7 ans il y a | 3

| A accepté

Réponse apportée
I have a matrix (57,3600,45), how can I create matrices with (3600,45)?
Why did you store data in such a permuted order? However, not to fear, MATLAB can fix your problem! data=permute(data,[2 3...

plus de 7 ans il y a | 0

Réponse apportée
Comparing common strings in two large string arrays imported from excel (using xlsread)
[c,ia,ib]=intersect(categorical(s1),categorical(s2));

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plot data with x-axis as date
t=datetime(2019,1,1,0,0:15:365*24*60-15,0); plot(t,randn(size(t))) hAx=gca; hAx.XTick=datetime(2019,[1 7 12],1); ADDENDUM: ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
if function for array
I have a little utility function ("syntax sugar") for such things... plot(x(iswithin(x,52,54))) where >> type iswithin.m ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
I want to read similar column headers and standardize their names
Picking up where left off above with two string arrays of quoted string column labels from the two shown-to-be-different files.....

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Saving a cell with multiple vectors of different length to csv or xlsx
The easier way but does open/close the file every time... N=size(val,3); rOff=0; for i=1:N v=val{:,:,i}; ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Jump datetime in graphs and tables
You mean generate a series of some time difference (like three months above)??? dat=datetime(2010,2:3:9*12,1).'; dat.Format='...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
csvwrite is storing wrong number
>> tstary=int32(randi(2^31,104937,1810)); >> whos tstary Name Size Bytes Class Attributes ...

plus de 7 ans il y a | 1

| A accepté

Question


COM Syntax Queston (Excel example but general puzzle)
If/when driving Excel or other apps via COM/ActiveX, "dot" syntax isn't always available for every method and one is forced tor ...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to normalize curves with multiple peaks such that each peak will be 1 and each valley will be 0?
If you mean 'builtin' already coded to do that, "No, I don't think so!" I've never seen it actually done before; don't think it...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
CUSUM and CUMSUM, cusum not found
>> which -all cusum C:\ML_R2017\toolbox\signal\signal\cusum.m >> Your present release apparently doesn't have the Signal Pro...

plus de 7 ans il y a | 2

Question


ISMEMBER() modified result desired
[lia,locb]=ismember(A,B); returns the first/last matching location in B of the elements in A that occur in B depending on which...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Create new vector from 2 differnet cells
You could use loops, but that's not "the MATLAB way!"... This also superfically seems like a place cell arrays may be in the wa...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to remove period stamp in datetime plot ?
This was a side subject of a thread some time back with the need to combine durations with times at which the event durations oc...

plus de 7 ans il y a | 7

Réponse apportée
How to load text file and extract number from file that is not organized into columns?
That's a very nicely organized file in the sections...you just have to know what the section headers are and which you want... ...

plus de 7 ans il y a | 0

| A accepté

Question


Debug and Focus, Huh?
Is there no way to make focus stay in command window instead of jumping to editor when reach breakpoint???? Am always typing on...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Writing multiple matrices into text file
fid(i)=fopen(filename, 'wt'); From the doc for fopen -- permission: 'w' Open or create new file for writing. Discard e...

plus de 7 ans il y a | 0

| A accepté

Charger plus