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

oltre 11 anni fa | 12

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 2

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 3

| accettato

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

oltre 11 anni fa | 2

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 2

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

oltre 11 anni fa | 3

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 2

Domanda


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

oltre 11 anni fa | 1 risposta | 1

1

risposta

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

oltre 11 anni fa | 2

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 4

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 4

| accettato

Carica altro