Réponse apportée
Correlation Coefficient between multiple table columns
Try doc corrcoef % see examples re: NaN When you're still learning way around Matlab, a very useful (albeit old and prett...

plus de 7 ans il y a | 2

Réponse apportée
Plotting Matrix with Small and Large Values
'Kay; that's what I surmised...on one plot it's probably going to be messy no matter what you do. Two options I can think of Us...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Find the desirable string and read data below them
function data=readTAUIJ(file) MAGIC_LINE_1='<INIT_MOD_TAUIJ_STAR>'; MAGIC_LINE_2='<XCPLJIJ>'; fid=fopen(file,'r'); ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Can I reorder the legend entries for gscatter
Yeah, just redo the legend manually with the handles in the desired ordered... ... hGS=gscatter(TA_est,TA_meas,strtrim(height)...

plus de 7 ans il y a | 0

Réponse apportée
Setting a logical matrix to a number
A logical array is either 0 or 1...if you put something else in an element, then the array can no longer be class logical You c...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Converting Binary files to ASCII
OK, that's all you should need... fid=fopen('yourfile.ext','r'); data=fread(fid,[inf,4],'single'); fid=fclose(fid); should r...

plus de 7 ans il y a | 0

Réponse apportée
Finding the value of chi-squared for a linear fit
mdl=fitlm(xi,yi,'intercept',false);

plus de 7 ans il y a | 0

Réponse apportée
how to get back numerical value
F1_char = num2str(F_double); fprintf(fid, '%s', F1_char); You wrote the string representation of the values of F_double sequen...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plot a drawn, filled shape at each data point
S=1; % Side size X=50; Y=10; % location hR=rectangle('Pos...

plus de 7 ans il y a | 0

Réponse apportée
For loop in linear regression for number of assets
X = Indreturn; %(historical data of market index returns) Y=EFreturn(:,:); ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to plot multiple horizontal bar plots in single figure?
You'll have to do that by having two axes so that you can have two separate barh objects...I've railed at TMW for 20 years about...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to get x-axis to be in seconds utilizing the timetick or comparable function
tfmt='dd-MMM-yyyy HH:mm:ss:SSS'; start = datetime('08-Feb-2019 07:32:50:503','InputFormat',tfmt); stop = datetime('08-Feb-2019...

plus de 7 ans il y a | 0

Réponse apportée
Function output into a variable
[r th]=AddVecPol(5,23,12,40); ML only returns results if you provide somewhere for it to throw them...otherwise the first of mu...

plus de 7 ans il y a | 0

Réponse apportée
writing output in excel file with variable to decide starting cell to write data
Sure, just use my little utility xlsAddr to build the address and pass to xlswrite for i=1:N output=yourfunction(data(:,i)...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Polynomial equation not giving expected result
Just because the coefficient is small doesn't mean it isn't important...it is, after all the coefficient of x^5 and 75^5 = 2.373...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Labeling Axises, YTick spacing, maximum and minimum labeling
>> [mx,i]=max(zc(:)) mx = 154.5315 i = 10403 >> [imx,jmx]=ind2sub(size(zc),i) imx = 101 jmx = 103 >> zc...

plus de 7 ans il y a | 0

Réponse apportée
Help with labelling the axes of a plot.
Something like hL=plot(reshape(t,12,[]),reshape(y,12,[])); is really easy to get the effect by ML's treating each column on ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I avoid scientific notation when using fprintf to print numbers into a text document?
If you want/need a specific format, say so... :) When you use '%d' for a floating point value, since it expects an integer valu...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I move the Xlabel without moving the X-Axis?
You've got to override the default position data for the label when move the axis location to center-- Ylm=ylim; ...

plus de 7 ans il y a | 0

Réponse apportée
Determine if an array has any elements that are zero ?
function flg = isFullPoly(b) % isFullPoly(b) returns T if all coefficients, b, nonzero, F otherwise flg=all(b); end Thi...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I sort an array by only one column?
doc sortrows % ALWAYS read "See Also" when looking for related functions!!! >> help sort sort Sort in ascending or des...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
How to analyze the relationship between my data in a survey
"Carefully!" :) So happens had reasons to think about this some recently -- a couple links I found of some use: https://www3....

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
read certain range in csv file and save to new file
Same basic solution but one can write the loop without an explicit loop -- of course, it could easily be found to be less effici...

plus de 7 ans il y a | 0

Réponse apportée
How to position added text in the graph at the upper right corner of the graph?
xL=xlim; yL=ylim; text(0.99*xL(2),0.99*yL(2),str,'HorizontalAlignment','right','VerticalAlignment','top')

plus de 7 ans il y a | 2

Réponse apportée
ERROR unable to convert 'string' value to 'int64'
Name Size Bytes Class Attributes HighTemp 4x1 16 int32 LowT...

plus de 7 ans il y a | 0

Réponse apportée
Tables: Transform Variablenames
...,'ReadVariableNames',0); % use the named parameters as needed See doc readtable Also, in general, doc detectImp...

plus de 7 ans il y a | 1

Réponse apportée
Smoothing multiple files and save it into new file
See FAQ https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F I'm particularly fond of the dir() solution...

plus de 7 ans il y a | 0

Réponse apportée
ERROR unable to convert 'string' value to 'int64'
Yr = 1900 + Yr; fileNew = fopen(newFileName,'w'); Mnth = string(Mnth); T = [Yr Mnth LowTemp HighTemp Precip]; You've got a n...

plus de 7 ans il y a | 0

Réponse apportée
I'm wanting to change my formatting to scientific and output values in a table
Your table isn't what you think it is...study the output carefully and the orientation of the data in the table... HINT: You n...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
how to perform xor of two bits in matab
See doc bitxor to do the logical operation on the content of the variable in its internal storage pattern; you can convert the...

plus de 7 ans il y a | 1

Charger plus