Answered
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', ...

11 years ago | 12

| accepted

Answered
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...

11 years ago | 1

Answered
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...

11 years ago | 2

| accepted

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

11 years ago | 1

Answered
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...

11 years ago | 3

| accepted

Answered
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...

11 years ago | 2

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 2

Answered
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...

11 years ago | 3

| accepted

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

11 years ago | 0

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

11 years ago | 1

| accepted

Answered
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 ...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 2

Question


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

11 years ago | 1 answer | 1

1

answer

Answered
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 ...

11 years ago | 2

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 1

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

11 years ago | 1

| accepted

Answered
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>...

11 years ago | 1

Answered
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 ...

11 years ago | 4

| accepted

Answered
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...

11 years ago | 0

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

11 years ago | 1

| accepted

Answered
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 =...

11 years ago | 0

Answered
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...

11 years ago | 1

| accepted

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

11 years ago | 1

Answered
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|*...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 4

| accepted

Load more