Answered
i cant plot to UIAxes
x=getappdata(0,'onedata'); Gives you the cell array output from the call to |who|. You can't |plot| that in any axes.

2 years ago | 0

| accepted

Answered
How to write if condition for a column in a .txt file
I think I understand now - you want to downselect each row based on its value of C. We were looking at C as a scalar (clearly n...

2 years ago | 0

| accepted

Answered
Update row in database
Reading <https://www.mathworks.com/help/database/ug/database.odbc.connection.update.html?s_tid=srchtitle the documentation> for ...

2 years ago | 0

| accepted

Answered
Executing eval in function handle ?
*Most importantly!* respond to Rik's comment above. The use of |eval| is very nearly always a horrible idea. However, to you...

2 years ago | 1

Answered
Load (file.m) into button pushed function
You don't |load| .m-files. You call them (as you do in the other 2 lines that involve Langmuir - except make sure to capitalize...

2 years ago | 0

| accepted

Answered
Index in position 2 exceeds array?
Adjust your code to: connector off clear m

2 years ago | 0

Answered
What is the most efficient method to compare two matrices for an identical row?
Have you tried the following? all(A==B,2); I think you meant you are looking for a single row (variable |A| of size 1x2)...

2 years ago | 0

Answered
if a & b
This means _m_ or _i_ (or both) are not convertible to logical scalar values. They could be not convertible to logical (is |{...

2 years ago | 1

Answered
Looping through properties of a class object
props = properties(objClsScene); for iprop = 1:length(props) thisprop = props{iprop}; %%% Add logic here if you w...

2 years ago | 2

| accepted

Answered
How do I reduce my right y axis scale ?
yyaxis('right'); ylim([0,10]); % Play with 10 until it looks good yticks(0:.5:2);

2 years ago | 0

| accepted

Answered
Change DEFAULT properties DataAspectRatioMode and PlotBoxAspectRatioMode to 'auto'
Any |groot| defaults are just that: _defaults_. If a value is not overridden by the user, it remains default. Otherwise, the d...

2 years ago | 0

| accepted

Answered
Use addNewPositionCallback to updates stored line coordinates in GUIDE
From the documentation: addNewPositionCallback — Add new-position callback to ROI object id = addNewPositionCallback(h,f...

2 years ago | 0

| accepted

Answered
Is the Zeroes Function here necessary?
It's called pre-allocation. It is *always* a good idea to pre-allocate. If you need a quick proof, throw a |tic| / |toc| aroun...

2 years ago | 0

| accepted

Answered
How to set default aspect ratio of 2D-3D plot in Matlab
set(groot,'defaultAxesPlotboxAspectRatio',[2.5,3.5,1]); set(groot,'defaultAxesPlotboxAspectRatioMode','manual');

2 years ago | 0

Answered
How to copy files to different folders based on part of filename (strings and numbers)
You're mixing U.S. and European decimal separators in the if statement. In the first, you use period (0.00) then you switch to ...

2 years ago | 1

| accepted

Answered
how do i store a matrix value inside a parfor loop?
Pre-allocate |A| to store each |R| along the third dimension, then reshape it outside the loop. Iterations of |parfor| can't us...

2 years ago | 1

| accepted

Answered
Open figure in standalone application
MATLAB does only continue to the next line _when MATLAB is finished_ with the line. For graphics commands, MATLAB is done with ...

2 years ago | 1

| accepted

Answered
What parts of MATLAB would you not miss?
Now that I've been forced into Linux at work, I wouldn't miss |ls| for a minute. It behaves horribly compared to in Windows, and...

2 years ago | 0

Answered
What parts of MATLAB would you not miss?
Commenting on another answer just reminded me of something else: eval(...) Ok, I'll be honest. There's that one time I ...

2 years ago | 2

Answered
Is it possible to set the startup directory to be the directory I was in when I ended the previous session of MATLAB?
This is now a first-class-citizen preference option. This was introduced to <https://www.mathworks.com/help/releases/R2017a/mat...

2 years ago | 0

Answered
What parts of MATLAB would you not miss?
And now for my own "wouldn't miss it" feature: finish.m I have never used it, have never considered using it or thought it...

2 years ago | 0

Answered
Coloring curves wrt to a third variable and creating legend for the same
There's no reason to loop over colors - you already have the index in |MA(i,2)|. Assuming the second column of |MA| is restrict...

2 years ago | 0

| accepted

Answered
How can I update initial value of an array in a for loop?
Use 3 separate variables, with a slight fix to the value assignment you suggested in the question. Also, throw a break inside t...

2 years ago | 0

| accepted

Answered
Matlab renewal with new toolbox
You can ask them to match up the expiration dates. They'll prorate the toolbox.

2 years ago | 0

Answered
problem using setdiff to check if a vector is present in a loop
I think all you need is the |'rows'| input to |setdiff|. Otherwise, |setdiff| includes an implicit |unique|, so any duplicate d...

2 years ago | 1

| accepted

Answered
How to combine two different conditions for a user?
Personally, I would just round the input (and inform the user if you choose). Then, all you need is check the range. x2 = ...

2 years ago | 0

Answered
Deploytool, which folder to distribute?
The _for_redistribution_ folder bundles your application with a web-downloading runtime installer. After running _MyAppInstalle...

2 years ago | 0

| accepted

Answered
Output argument not assigned during call
The output variable |x| is only set (assigned a value) *inside* the while loop. What happens if your test condition ( |f(r) - f...

2 years ago | 1

Answered
problem executing while loop
Edit - Sorry, said that wrong. You aren't updating your checks inside the loop. The value of |numsum| is *always* the value ...

2 years ago | 0

Answered
Entering Special Characters Such as Greek in Editor and Command Window?
According to the <https://www.mathworks.com/help/matlab/ref/sprintf.html?s_tid=srchtitle documentation> for |sprintf|, you can d...

2 years ago | 0

| accepted

Load more