回答済み
How to get Matlab to print both values and variable name
Couple of choice depending upon just how you want to use it... As a function, can retrieve the passed variable name with |inp...

8年以上 前 | 2

回答済み
Increasing efficiency of for loop cycling through 2 vectors
I did find a few minutes -- here's one approach that may or may not actually be quicker; I didn't have time for timing exercises...

8年以上 前 | 0

| 採用済み

回答済み
How can I label the x and y axis in this plot using the name of the Excel columns?
a=xlsread(filename); % only returns the numeric data from the spreadsheet. Look at doc xlsread and use the alterna...

8年以上 前 | 0

| 採用済み

回答済み
Using XLSWRITE with multiple arrays?
xlswrite('CarData.xlxs',[A B C]) presuming _A_, _B_, _C_ are column vectors of same size as are the variables in the |carbi...

8年以上 前 | 1

回答済み
How can I display images at multiple axes by clicking a pushbutton?
You'll need to save the axes handles for each axes when it is created, then update each in the button callback function. By def...

8年以上 前 | 0

| 採用済み

回答済み
How can access elements of two cell at one time
data_array=cell2mat(data_cell); will return 256x1024 array (correcting previous inadvertent juxtaposition or row, column po...

8年以上 前 | 1

| 採用済み

回答済み
how can this return a x2 value that does not meet -1.5<x2<1.5
Your starting conditions are unrealizeable as the argument to the arcsine function is out of range so none of the |if| clause ev...

8年以上 前 | 0

回答済み
Not a valid target for an assignment
... alpha01=[ones(30,1) coefficients(:,2) Y=(returns(n,:)-factors(t,4))'; The opening *[* of the first line isn't ter...

8年以上 前 | 0

| 採用済み

回答済み
Subscript indices must either be real positive integers or logicals.
for ib1=1:nb1; |nb1| is undefined above... start1=bpo1(ib1)/L1*nel1*ndof; for i=1:2; ii=start1+i; for j=1...

8年以上 前 | 0

回答済み
how do you make a function out of a graph
See <http://www.mathworks.com/help/curvefit/parametric-fitting.html?searchHighlight=fitting%20models&s_tid=doc_srchtitle <Param...

8年以上 前 | 0

| 採用済み

回答済み
How can I write a function that randomly sorts numbers into equal groups?
N=72; G=6; % constants per problem definition rnv=reshape(randperm(N),[],G); % separated into G c...

8年以上 前 | 1

| 採用済み

回答済み
Get return values from cmd line 'live'
_" Is there a possibility, that you get the values in 'livetime'."_ Short answer, "no". Not from the |system| command route;...

8年以上 前 | 1

回答済み
convert a struct to a mxn cell array
FolderTrain = 'myfolderpath'; % specify the folder AllTrainFiles=fullfile(FolderTrain,'*.txt'); % full path...

8年以上 前 | 0

| 採用済み

回答済み
Check elements in cell
The line if isequal(NAME_T,'Del Col_2010') inside the loop doesn't help because you don't index the cell array; |NAME_T| returns...

8年以上 前 | 0

回答済み
Difference between num2cell(1:4)' and {'1','2','3','4'}' ?
As the error message says, the cell _content_ must be character string and Adam notes the difference between the two forms you w...

8年以上 前 | 1

回答済み
Converting string to number in table with mixed values
Use a lookup table; since it is the atomic table; build it for completeness(*) once in the app but for the specific case the exa...

8年以上 前 | 0

| 採用済み

回答済み
How to calculate moving average
<https://www.mathworks.com/matlabcentral/answers/329590-efficient-weighted-moving-average#answer_258475 <Efficient-weighted-movi...

8年以上 前 | 0

回答済み
/n %H as a string
Have to double-down on the control characters to prevent them being interpreted and to print instead... >> str='puts "\\nAna...

8年以上 前 | 1

| 採用済み

回答済み
How to remove specific axis labels not the nimor ticks from a MATLAB figure?
set(gca,'xtick',10.^[-10:2:0]) For more generic coding set the two limits as variables, say powLo and powHi.

8年以上 前 | 0

回答済み
Please determine the value of the Matlab expression: 25>=(~4|5)||(5-3)
25 >= 1 --> _'True'_, ergo 1 The more important question is probably why would you ask; what isn't obvious?

8年以上 前 | 0

回答済み
Box plot - plotting multiple datasets on one plot
Well, you're not following the documentation precisely which says _"If X is a matrix, there is one box per column; if X is a vec...

8年以上 前 | 0

回答済み
How to merge multiple xls files into a single file with the same worksheet?
Probably simplest presuming the individual sheets aren't terribly big is to loop through and accumulate all the data into one ar...

9年弱 前 | 0

回答済み
How can I extract certain segments of a long matrix and partition them into new matricies
Simply read the full file and throw away the columns that aren't of interest-- data=textread(yourfile,'headerlines',1); ...

9年弱 前 | 0

回答済み
How do I fit negative values to a log-logistic probability distribution function?
The Matlab log-logistic distribution object isn't the extended three-parameter log-logistic distribution used in the subject pap...

9年弱 前 | 0

回答済み
How do I extract certain data from a table?
I'd guess the ID column isn't a float but an integer number; need to ensure you've imported it with sufficient precision to be c...

9年弱 前 | 2

| 採用済み

回答済み
Hi, How to find the highest of maximum and lowest of minimum value in each period?
Flip sign and find peaks; that will isolate the sections as each minimum appears pretty clean break between periods. Then for e...

9年弱 前 | 0

回答済み
Ticks label problem Julian day
Convert the numeric values to datetime either as time or duration depending on the meaning. You'll need to pick the appropriate...

9年弱 前 | 0

回答済み
How to read CSV file with different format ?
A) readtable B) textscan C) interactive use the import tool...

9年弱 前 | 0

回答済み
filtering out two months with a code
Month1 == 10; % make variables instead of hardcoded Month2 == 11; % "magic" numbers datelike1= datelike(iswithin(d...

9年弱 前 | 0

| 採用済み

回答済み
need to analyze individual components of an array
That sort of comparison operation is builtin Matlab vector operations...I wouldn't call the test you outline above a "tolerance"...

9年弱 前 | 0

さらに読み込む