Answered
Fix Command Window to Accept Input from Top Down
Matlab doesn't work that way. However, you can achieve a similar result (user experience) the following way: * type the comma...

13 years ago | 1

Answered
Problem with text size
Increase the font size with Home | Preferences | Fonts | Desktop code font

13 years ago | 1

| accepted

Answered
Undefined function or variable in MATLAB
What is |e=[Hydrogen Helium]| intended to do?

13 years ago | 0

| accepted

Answered
"??? Undefined function or variable" in a function (should be easy...?)
Set >> dbstop if error and inspect the Workspace window when the break occur Here are some links on debugging in...

13 years ago | 2

Answered
debugging a callback function
_"[...] debug as normal [...]"_? Could you provide an example? I would either set >> dbstop if error or set a breakpo...

13 years ago | 0

| accepted

Answered
Subplot disappears on reposition
I think something is wrong in |ax = subplot(3,3,(x-1)*3+y);|. Maybe a row-column mixup? In your code, axes are overwritten by su...

13 years ago | 0

| accepted

Answered
How to display results for looping
The results need to be arrays, i.e. x1_new(n,i) x2_new(n,i) y_new(n,i)

13 years ago | 0

Answered
Arrayfun scalar expansion (non-uniform output)
_"[...]this needs to be as fast as possible. "_ With R20112a loops are sometimes fast enough. Try this %% N = 1e5;...

13 years ago | 1

Answered
Reading Data from container.Map Objects
This looks like a bug to me (R2012a). Either |a('Two').Remark| should return an error message or the list of ten strings (as you...

13 years ago | 0

Answered
"A MATLAB string constant is not terminated properly"-what this error indicates??
It indicates that there is a blip too few, too many, or in the wrong place. However, you code looks ok to me. Comments: * ...

13 years ago | 1

| accepted

Answered
How should I set a dragable point in GUI?
AFAIK: _"dragable points"_ is not a standard feature in Matlab. (However, there is always another toolbox.) See the FEX-con...

13 years ago | 0

Answered
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Should be x(u) = NaN; without blips. What did the error message say?

13 years ago | 0

| accepted

Answered
read a commented line from code
It is possible to make all kinds of fancy tools. However, how much work are you prepared to invest in the tool? You want to s...

13 years ago | 0

Answered
How to write a big file
2700 rows of text should be no problem to write with |fprintf| and a loop. The resulting file will be a couple of MB at most. Th...

13 years ago | 0

Answered
How to read text file which has blanks in some columns ?
Comments * If you are in control of the program, which produces this text file, you could write the algorithm-value 'A' or 'B...

13 years ago | 1

Answered
Using matfile objects as input parameters
Yes, it is ok to pass around matfile objects, matObj; make some simple experiments. I don't think the documentation says anyt...

13 years ago | 1

| accepted

Answered
regular expression to replace ~ in code
regexprep( '[ a, ~, b ]', '(?<=\[.+?,[ ]*)\~(?=.+?])', 'dummy' ) returns [ a, dummy, b ] *Firstly, backup all y...

13 years ago | 0

| accepted

Answered
Extracting temperature data from netCDF file and then trying to take time derivative of temperature
for i=1,200 SATdiffhist(i) = SATh(i) - SATh(1); i = i+1 end with Matlab syntax for i=1:200 ...

13 years ago | 0

Answered
Why is assigning a new handle object in an array slow?
There is a performance penalty for using objects. That has been discussed here at Answer and in other places, e.g. <http://blogs...

13 years ago | 1

| accepted

Answered
problems with a regex
_to extract the string between "is a " and the first " - "_ This formulation is close to a pseudo-code for the expression we s...

13 years ago | 0

Answered
MATLAB OOP - redefine static method
Do you use a call like this? myclass.Parameters.getParameterInstance( 'two', 'args' )

13 years ago | 0

| accepted

Answered
How to compare the values โ€‹โ€‹of three matrices are equal?
The link once more: <http://www.mathworks.se/help/matlab/math/matrix-indexing.html#bq7egb6-1 Using Logicals in Array Indexing> ...

13 years ago | 0

| accepted

Answered
How to open only gui file without opening the command window
See <http://www.mathworks.se/products/compiler/ MATLAB Compiler - Build standalone executables and software components from MAT...

13 years ago | 0

Answered
Importing file with text and numbers
If the file fits in memory this is one way to read it. Maybe, |'\r\n'|, needs to be replaced by |'\n'|. That depends the sou...

13 years ago | 0

Answered
Matfile runs incredibly slowly on large files--what might be the problem?
*Summary: _"column-major"_ does not apply to the matlab.io.MatFile class when it comes to reading speed.* --- *Column-majo...

13 years ago | 3

| accepted

Answered
error in MATLAB while shutting down
Try which builtin -all it should return *one* line similar to built-in (C:\Program Files\MATLAB\R2012a\to...

13 years ago | 0

Answered
what should be the format of .mat file
Try this: S = load( filename, '-ascii' ); See <http://www.mathworks.se/help/matlab/ref/load.html?searchHighlight=load ...

13 years ago | 0

Answered
Matfile runs incredibly slowly on large files--what might be the problem?
I'm neither surprised nor shocked. Which OS, and how much RAM installed? Your matrix is large >> 64000*31250*4/1e9 a...

13 years ago | 0

Answered
How do I organize data when number of data points is unknown?
This code %% str = '1111111111111112222222222222333333444444444555511111111222222333'; str([ true, not( diff( d...

13 years ago | 0

| accepted

Answered
Unable to set dynamic property within superclass method from subclass object
This restriction is not specific to dynamic properties. The documentation says: protected โ€” access from class or subclass...

13 years ago | 1

Load more