回答済み
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...

7年以上 前 | 1

| 採用済み

回答済み
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'); ...

7年以上 前 | 1

| 採用済み

回答済み
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)...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 0

回答済み
Finding the value of chi-squared for a linear fit
mdl=fitlm(xi,yi,'intercept',false);

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
Plot a drawn, filled shape at each data point
S=1; % Side size X=50; Y=10; % location hR=rectangle('Pos...

7年以上 前 | 0

回答済み
For loop in linear regression for number of assets
X = Indreturn; %(historical data of market index returns) Y=EFreturn(:,:); ...

7年以上 前 | 1

| 採用済み

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

回答済み
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)...

7年以上 前 | 1

| 採用済み

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 0

回答済み
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 ...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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; ...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 2

| 採用済み

回答済み
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....

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 0

回答済み
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')

7年以上 前 | 2

回答済み
ERROR unable to convert 'string' value to 'int64'
Name Size Bytes Class Attributes HighTemp 4x1 16 int32 LowT...

7年以上 前 | 0

回答済み
Tables: Transform Variablenames
...,'ReadVariableNames',0); % use the named parameters as needed See doc readtable Also, in general, doc detectImp...

7年以上 前 | 1

回答済み
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...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

回答済み
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...

7年以上 前 | 0

| 採用済み

回答済み
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...

7年以上 前 | 1

回答済み
convert two columns( one real number and the other is imaginary but without (i) symbol) in txt file to complex number and one column.
Use xlsread or what other import functions you care to use to read the data depending on how much of the header info you need, t...

7年以上 前 | 0

さらに読み込む