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

casi 12 años hace | 12

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 2

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 3

| aceptada

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

casi 12 años hace | 2

| aceptada

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 2

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

casi 12 años hace | 3

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 2

Pregunta


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

casi 12 años hace | 1 respuesta | 1

1

respuesta

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

casi 12 años hace | 2

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 1

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 4

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 4

| aceptada

Cargar más