Former product manager for MATLAB, but the company decided to trust me with the source code, so now I'm a developer.

Answered

how to store an output in a function (or bring out the stored output into the workspace) for n-number of model run

Assuming NSE is a scalar double (that is, a single number), When you call HYPE, you can append the NSE result to an (intially em...

how to store an output in a function (or bring out the stored output into the workspace) for n-number of model run

Assuming NSE is a scalar double (that is, a single number), When you call HYPE, you can append the NSE result to an (intially em...

3 meses ago | 0

Answered

How to only get certain parts of an Excel Spread using readcell?

Trying using the 'Range' option with readcell.

How to only get certain parts of an Excel Spread using readcell?

Trying using the 'Range' option with readcell.

3 meses ago | 0

Answered

Not sure what exactly this sentence mean: "Locate the classpath.txt file for the MATLAB installation?"

Read on to the next sentence: "The location of this file can be found by typing the following command in MATLAB command window:...

Not sure what exactly this sentence mean: "Locate the classpath.txt file for the MATLAB installation?"

Read on to the next sentence: "The location of this file can be found by typing the following command in MATLAB command window:...

3 meses ago | 0

Answered

Tab completion of struct within cell

If you can try the just-released R2019a, MATLAB will now tab completion in this situation.

Tab completion of struct within cell

If you can try the just-released R2019a, MATLAB will now tab completion in this situation.

10 meses ago | 1

Answered

Run script while changing different paths

You did not specify the error you see, but I can see a problem with the cd command. It only take one argument, but you are passi...

Run script while changing different paths

You did not specify the error you see, but I can see a problem with the cd command. It only take one argument, but you are passi...

11 meses ago | 0

Answered

How do I run MATLAB from the mac terminal?

I do this: open /Applications/MATLAB_R2018b.app/

How do I run MATLAB from the mac terminal?

I do this: open /Applications/MATLAB_R2018b.app/

12 meses ago | 2

| accepted

Answered

Why am I getting "Subscripted assignment dimension mismatch."

It looks like you're trying to create a 2D matrix of char(acter)s. For this to work, each char vector needs to be exactly the sa...

Why am I getting "Subscripted assignment dimension mismatch."

It looks like you're trying to create a 2D matrix of char(acter)s. For this to work, each char vector needs to be exactly the sa...

alrededor de 1 año ago | 1

| accepted

Answered

What is the format to write to a file not in the MATLAB directory.

This is a great question. I don't have a flash drive handy to try this, but you might need to mount the flash drive to make it a...

What is the format to write to a file not in the MATLAB directory.

This is a great question. I don't have a flash drive handy to try this, but you might need to mount the flash drive to make it a...

alrededor de 1 año ago | 0

| accepted

Answered

Matlab R2009b compatibiliity with Solaris 11

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2009b_Solaris.p...

Matlab R2009b compatibiliity with Solaris 11

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2009b_Solaris.p...

alrededor de 1 año ago | 0

Answered

Why doesn't the callback I've written here seem to work? As far as I can tell all of my syntax is correct and I know that none of the pregenerated code has been altered. Thank's in advance!

The error message: Reference to non-existent field 'app'. is telling you that you are trying to access handles.app, that is, t...

Why doesn't the callback I've written here seem to work? As far as I can tell all of my syntax is correct and I know that none of the pregenerated code has been altered. Thank's in advance!

The error message: Reference to non-existent field 'app'. is telling you that you are trying to access handles.app, that is, t...

alrededor de 1 año ago | 1

| accepted

Answered

Plotting matrices that don't have the same size

When calling plot, the length of the x,y pairs must be equal. Here is an example of a plot of x^2 with noise added, then then a ...

Plotting matrices that don't have the same size

When calling plot, the length of the x,y pairs must be equal. Here is an example of a plot of x^2 with noise added, then then a ...

alrededor de 1 año ago | 0

Answered

Sir my program howing a error. how to rectify the error.

The variable 'H' is used but does not exist. I see that you are trying to assign to 'H' in a loop above this failure, and I'll g...

Sir my program howing a error. how to rectify the error.

The variable 'H' is used but does not exist. I see that you are trying to assign to 'H' in a loop above this failure, and I'll g...

alrededor de 1 año ago | 0

Answered

Error using chdir ; cannot CD to (Name is nonexistent or not a directory) / permissions error

Writing to the root of your file system is a bad idea. Looking at this code, TAUPVC_RUNME_Create_ROIs_For_Rousset takes a numbe...

Error using chdir ; cannot CD to (Name is nonexistent or not a directory) / permissions error

Writing to the root of your file system is a bad idea. Looking at this code, TAUPVC_RUNME_Create_ROIs_For_Rousset takes a numbe...

alrededor de 1 año ago | 0

| accepted

Answered

Particle tracking software error / "No appropriate method, property, or field 'addAll' for class 'msdanalyzer'."

The error message telling you that there is nothing called addAll in the class msdanalyzer. I don't know anything about this cla...

Particle tracking software error / "No appropriate method, property, or field 'addAll' for class 'msdanalyzer'."

The error message telling you that there is nothing called addAll in the class msdanalyzer. I don't know anything about this cla...

alrededor de 1 año ago | 1

| accepted

Answered

Suggestion/question: User-friendly tab auto-completions

Give the Live Editor a try in a new-ish release of MATLAB; I expect its auto-completion will behave more like you are hoping for...

Suggestion/question: User-friendly tab auto-completions

Give the Live Editor a try in a new-ish release of MATLAB; I expect its auto-completion will behave more like you are hoping for...

alrededor de 1 año ago | 0

| accepted

Answered

Index exceeds array bounds error when trying to reach .tif images from file

Those backslashes are likely not really part of the folder name, but inserted by the Terminal program to escape spaces in the fo...

Index exceeds array bounds error when trying to reach .tif images from file

Those backslashes are likely not really part of the folder name, but inserted by the Terminal program to escape spaces in the fo...

alrededor de 1 año ago | 1

| accepted

Answered

R2018a functionSignatures.json (user function tab complete) not working as documented outside of live-script

See the "comments" section for more discussion. In this particular case, the use of the argument name "options" is making the d...

R2018a functionSignatures.json (user function tab complete) not working as documented outside of live-script

See the "comments" section for more discussion. In this particular case, the use of the argument name "options" is making the d...

más de 1 año ago | 0

| accepted

Answered

How to configure tab completion for my function in MATLAB 2016 ?

Note that, as of R2018a, this capability is documented and supported. See <https://www.mathworks.com/help/matlab/matlab_prog/cus...

How to configure tab completion for my function in MATLAB 2016 ?

Note that, as of R2018a, this capability is documented and supported. See <https://www.mathworks.com/help/matlab/matlab_prog/cus...

más de 1 año ago | 2

Solved

Matrix indexing with two vectors of indices

Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

alrededor de 3 años ago

Solved

Getting logical indexes

This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

alrededor de 3 años ago

Solved

Return elements unique to either input

Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

alrededor de 3 años ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

alrededor de 3 años ago

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples : n=2, A=[1 2 3] -> [1 1 2 2 3 3] n=0...

alrededor de 3 años ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

alrededor de 3 años ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

alrededor de 3 años ago

Answered

Why can't I mex cpp with matlab?

MEX is working as expected. How old is this code? Xcode's compiler is alerting you to several risky programming patterns bei...

Why can't I mex cpp with matlab?

MEX is working as expected. How old is this code? Xcode's compiler is alerting you to several risky programming patterns bei...

alrededor de 3 años ago | 1

Answered

Does anyone know how to run selection on mac?

Shift+F7. If you are on a lap, depending on your system preferences, you might need to add Fn to that chord (I do). As Jan sug...

Does anyone know how to run selection on mac?

Shift+F7. If you are on a lap, depending on your system preferences, you might need to add Fn to that chord (I do). As Jan sug...

casi 4 años ago | 3

Answered

Why did I get this error?

The function |deg2rag| was introduced in R2015b, according to the <http://www.mathworks.com/help/matlab/ref/deg2rad.html documen...

Why did I get this error?

The function |deg2rag| was introduced in R2015b, according to the <http://www.mathworks.com/help/matlab/ref/deg2rad.html documen...

casi 4 años ago | 0

Answered

OS X 10.5.8 install

R2010b was the last release to support OS X 10.8: <http://www.mathworks.com/support/sysreq/release2010b/macintosh.html>

OS X 10.5.8 install

R2010b was the last release to support OS X 10.8: <http://www.mathworks.com/support/sysreq/release2010b/macintosh.html>

alrededor de 4 años ago | 0

Answered

multiple line edit is not allowed on MATLAB file editor window?

The MATLAB Editor does not have this, I think. Do you have an example MATLAB source file you can share with us where this kind ...

multiple line edit is not allowed on MATLAB file editor window?

The MATLAB Editor does not have this, I think. Do you have an example MATLAB source file you can share with us where this kind ...

alrededor de 4 años ago | 0