Réponse apportée
How to adjust the locations of characters in biplot?
The output of |biplot| is an array of handles. In there will be the variable labels. Each has a _position_ property you can man...

plus de 6 ans il y a | 0

Réponse apportée
Why isn't my loop working?
Purely a guess, you goofed up some indexing: t = line(3)/1000; % <-- Recreates a new "t" as a scalar every loop iteration ...

plus de 6 ans il y a | 0

Réponse apportée
Hello, I'd like to extracts a cell range from an excel file, but I'm running into trouble.
Have you read the <https://www.mathworks.com/help/matlab/ref/csvread.html#btrbcf4-1 documentation> for the inputs to |csvread|? ...

plus de 6 ans il y a | 0

Réponse apportée
Update dot in plot according to sliders
I forget which release introduced |MarkerIndices| for plots, but I think that's exactly what you're going for. You don't need a...

plus de 6 ans il y a | 1

Réponse apportée
A way to reference questions and blog articles from your profile
Isn't that what _following_ a question does? Go to _My MATLAB Answers_ --> _Manage Following_ and boom, personalized list of qu...

plus de 6 ans il y a | 1

Réponse apportée
Merging two categorical columns using a rule
Make your categorical array ordinal (with "not" as the lowest value), then use |c = max(a,b)|. This is only guaranteed to work ...

plus de 6 ans il y a | 0

Réponse apportée
How to add a polygon to UIAxes in appdesigner?
ps = polyshape([0,0,.13,.13],[26,124,124,26]); % This is still a rectangle though... pg = plot(uiaxes,ps);

plus de 6 ans il y a | 0

Réponse apportée
How to use publish to create a word document. THANK YOU
Reading <https://www.mathworks.com/help/releases/R2017b/matlab/ref/publish.html?searchHighlight=publish&s_tid=doc_srchtitle#desc...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

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

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Index in position 2 exceeds array?
Adjust your code to: connector off clear m

plus de 6 ans il y a | 0

Réponse apportée
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)...

plus de 6 ans il y a | 0

Réponse apportée
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 |{...

plus de 6 ans il y a | 1

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

plus de 6 ans il y a | 8

| A accepté

Réponse apportée
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);

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 0

Réponse apportée
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 ...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
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 ...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 1

Réponse apportée
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 ...

presque 7 ans il y a | 2

Réponse apportée
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 general preferences in R2014b.

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Charger plus