回答済み
Check if variable exists in workspace to plot variable, else generate error
replace if exist('AmechM','var') by if exist('AmechM','var') == 1 or rather by ise = evalin( 'base', ...

12年弱 前 | 12

| 採用済み

回答済み
How to delete rows of characters in Text files?
There is no easy way to read blocks of numerical data, which are embedded in text. _*That might not be quite true, I just learne...

12年弱 前 | 1

回答済み
Processing sequences of images one by one
See <http://www.mathworks.com/matlabcentral/answers/167001-how-to-sort-file-when-reading-them-with-dir How to sort file when rea...

12年弱 前 | 2

| 採用済み

回答済み
Error loading a matrix
I think you should convert *|pauta|* to a function function val = pauta( rr, cc ) lab = [523.251 0.125 ...

12年弱 前 | 1

回答済み
Writing code to calculate difference between 2 ones in logic matrix
A starting point %% num = [0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0]; bol = logical( num ); ix1 = f...

12年弱 前 | 3

| 採用済み

回答済み
Importing specific rows of Data from Text file
If the entire file fits in memory, try this code >> num = cssm() num = 0 60.2750 -0.1577 -0.0069...

12年弱 前 | 2

| 採用済み

回答済み
How to access to variables saved in Matlab folder from the GUI
Add lines similar to the following, which are copied from the <http://se.mathworks.com/help/matlab/ref/load.html#btm3ohm-1 doc...

12年弱 前 | 1

| 採用済み

回答済み
Disp help. How to pad disp's method of printing variables
*|disp|* doesn't support formatting. Try %% data = [ 215, 84, 201, 55, 131, 0, 0, 0, 1000, 1000 ]; row = 77; fprintf...

12年弱 前 | 1

| 採用済み

回答済み
Is there any alternet function in MATLAB2012b correspondig to following functions in MATLAB 2014??
*|estimateGeometricTransform|* &nbsp appeared in R2013a according to <http://se.mathworks.com/help/releases/R2014b/pdf_doc/visio...

12年弱 前 | 2

回答済み
OOP in Matlab: input arguments for methods other than constructor
_"BA.withdraw(600) instead of BA.withdraw(BA,600)."_ There are two alternative ways to call a method withdraw( BA, 600...

12年弱 前 | 3

| 採用済み

回答済み
Can I move my license to newer version?
*NO!* &nbsp See <http://www.mathworks.com/matlabcentral/answers/166196#answer_163779>

12年弱 前 | 0

回答済み
How to avoid empty brackets using textscan?
The documentation on |Whitespace| and |Delimiter| together with space in |Formatspec| is difficult to interpret (IMO). However, ...

12年弱 前 | 1

| 採用済み

回答済み
How can I save complex data to HDF5 file?
There are two alternatives * Use Matlab's high level functions to write the real and the imaginary part to separate datasets ...

12年弱 前 | 1

| 採用済み

回答済み
bought Matlab home edition +simulink +control systems toolbox + symbolic toolbox....stateflow ?
_2015-01-01 Moved from commnets to here_ * I'm sure <https://se.mathworks.com/company/aboutus/contact_us/contact_sales.html?s...

12年弱 前 | 2

質問


Is "ix = 1:[4:12]" legal?
Is this behavior documented (for R2013a) >> ix = 1:[4:12] ix = 1 2 3 4 The Code Analalyze...

12年弱 前 | 1 件の回答 | 1

1

回答

回答済み
To read a text file using matlab
*IIRC:* *|fscanf|* and *|textscan|* are the fastest Matlab functions to read and parse text. The others and there are a few are ...

12年弱 前 | 2

回答済み
Questions about using genpath()
_" trying to add the search path for the functions to the path"_ &nbsp I believe that you are looking for <http://se.mathworks.c...

12年弱 前 | 0

回答済み
How to extract information from the name of a file without using strsplit function?
The best code is the one, which is easiest to understand in three month from now. That's among alternatives, which return the co...

12年弱 前 | 0

回答済み
import complex column into matlab
AFAIK: The complex number in the file need to be written without spaces between the real and the imaginary parts. However, I fai...

12年弱 前 | 1

回答済み
adding empty numerical fields in structure array
Yes, that's simple: A.field4 = []; A.field5 = []; &nbsp *In response to comment* >> clear A >> A...

12年弱 前 | 1

| 採用済み

回答済み
sending a graph via email automatically
Search the FEX for <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=sendmail+gmail sendmail gmail>...

12年弱 前 | 1

回答済み
how to run a loop according to two different index at the same time?
One way: ii = [0,1,3,6,10]; jj = [1,3,6,10,15]; for ix = 1 : length(ii) ii(ix) jj(ix) end ...

12年弱 前 | 4

| 採用済み

回答済み
Efficient way to display a walked path.
Something looking similar to the upper diagram can be achieved with a couple of transparent pathes (handle graphic objects) on t...

12年弱 前 | 0

回答済み
can't change encoding of text file
The code runs here (R2013a,Win7) without any problems <</matlabcentral/answers/uploaded_files/22954/Capture.PNG>> &nbsp ...

12年弱 前 | 1

| 採用済み

回答済み
How to separate characters from words and write both of them to matrice when reading from text file
A construct based on *|regexp|*: >> A{1} = regexp( ',considering);', '\W|\w++', 'match' ); >> A{1}{2} ans =...

12年弱 前 | 0

回答済み
Editor code completion for MATLAB Handle classes?
I'm not sure what's in the documentation. I use R2013a and the code below. I work in "break mode", similar to <http://www.threer...

12年弱 前 | 1

| 採用済み

回答済み
Matlab multitasking without using Parallel Computing Toolbox?
Before the release of the Parallel Computing Toolbox there where some independent "parallel toolboxes". Examples: * <http://w...

12年弱 前 | 1

回答済み
Which numeric type works for function table()?
Which release do you have? *|table|* appeared in R2013b or R2014a. I have R2013a and R2014a installed. In R2013a *|table|*...

12年弱 前 | 1

| 採用済み

回答済み
how to change unit
Search the <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&sort=date_desc_updated&term=tag%3Aunits Fil...

12年弱 前 | 1

| 採用済み

回答済み
How to add a new line in the middle of a text file?
There is no "smart" way. One has to read the existing file and write the new. If the file isn't too large this could be a starti...

12年弱 前 | 4

| 採用済み

さらに読み込む