Answered
how can i stop my scripts opening in another window in R2019a?
There is a small circle with a triangle on the top right of the editor window. Open this popup menu and select "Dock Editor".

15 days ago | 0

Answered
Unable to perform assignment
If the initial condition has 3 elements: yo = [0.5;0.5;1], te evaluated trajectory will have 3 elements per time step also. Then...

18 days ago | 0

| accepted

Answered
Divide the shuffled sequence Q={Q1,Q2,Q3,···,Qm×n}. into MN/16 matrices which are 4×4. M=256 and N=256
Replace A=sort(x); [A,T]=sort(x); Q=R(T); by Q = Q(randperm(65536, 65536)); Then: Q4 = reshape(Q, 4, 4, numel(Q)/16) Now...

18 days ago | 1

| accepted

Answered
Why is my assigned variable not being detected/read?
Your code creates app.UserData, but the error message tells you, that the output UserData is not created: function UserData = R...

18 days ago | 0

| accepted

Answered
How does matlab handle removing elements memory wise?
You can use format debug to display the pointer to the memory (I cannot test this currently but hope, that this valuable tool is...

18 days ago | 0

Answered
How to find the transformation matrix for a plat knowing the old and new coordinates of 3 points on it ?
You can define the motion by a translation of the center of the 3 points and a rotation of the local coordinate system. PointsA...

18 days ago | 1

Answered
How not to repeat the whole code after the try catch loop ?
A bold guess, which contains at least the terms "loop" and "try catch" and "avoid rewriting it": ready = false; while ~ready ...

18 days ago | 1

| accepted

Answered
Split cell array rows by delimiter (2016b)
Let's start with a loop approach to clarify at first, what you exactly want: C = {'LINE1'; ... '* THIS IS A COMMENT LINE';...

18 days ago | 0

| accepted

Answered
How to determine whether point lies within pyramid volume
Because the pyramid is regular, the algorithm is easy: E0 = [ 0, 0, 1]; E1 = [ 1, 1, 0]; E2 = [-1, 1, 0]; E3 = [-1, -...

18 days ago | 1

| accepted

Answered
Running a script from a Linux terminal using "matlab -r"
The error message means, that you try to create a folder inside a path, in which you do not have write access. The solution is e...

19 days ago | 0

| accepted

Answered
How can I check in an arbitrary vector that the first index is greater than the next index and so on?
BR = [15 2 1 12 8 5 6 11 4 9 10 7 3 14 13] Now you want to determine, if an element is larger or smaller than the former one: ...

19 days ago | 0

Answered
i want to export two "100X1 double" matrix into one tab delimited .txt file. file should have two columns with tab delimiter. column one with matrix one and column two with matrix two data.
Omit the transposing. Then: data = [inPhaseOsc; quadPhaseOsc]; [fid, msg] = fopen(FileName, 'w'); assert(fid > 0, 'Cannot ope...

19 days ago | 1

| accepted

Answered
incrementing over the alphabet???
count = 'a'; while 1 count = char(count + 1) end

20 days ago | 2

| accepted

Answered
Why am I getting a Duplicate directory name from the Applications folder in my MATLAB ?
Open pathdef.m and remove the duplicate folder.

20 days ago | 0

| accepted

Answered
¿how can I show a matrix of type -cell- in a msgbox?
Maybe this helps: https://www.mathworks.com/matlabcentral/fileexchange/9776-showcell-cell-disp

20 days ago | 0

Answered
i need to make a matrix count a given set of repeated elements but it doesnt work at all
Maybe all you need is: [Lia, LocB] = ismember(points, coor, 'rows'); n = histcounts(LocB, 1:size(B, 1))

20 days ago | 0

Answered
Matrix product error accumulated during iteration
You can find the nearest unitary matrix in each iteration using an SVD: for t_i = 1:100 [S,~,D] = svd(U * U); U ...

20 days ago | 0

| accepted

Answered
How to make grid lines visible while Axis is invisible?
The question is a little bit confusing for me. An invisible axes does not have visible properties. But you can create a visible ...

20 days ago | 0

Answered
MATLAB GUI JAVA Error (Matlab2018b, win10)
When uninstalling & re-installing Matlab does not help, the problem can be conserved in the preferences files. These are not rep...

20 days ago | 0

Answered
waitbar closing at random times
Set a breakpoint in te code, which closes the waitbar. Then you can inspect the reasons why it does so. My first guess is that ...

21 days ago | 0

Answered
MATLAB R2014b not working anymore. Windows 10
What exactly is "just" in "it just stopped working" ? What happened before? Did you install the Windows 10 1903 update? I'm run...

21 days ago | 0

Answered
Is MATLAB compatible with Windows 10?
I'm running R2009a/32&64 and the Windows SDK7.1 as compiler successfully under Windows 10.

21 days ago | 0

Answered
Divide the array of cells
The error message means, that Gll is not a cell array, but something else. Then you cannot use the curly braces for indexing. W...

21 days ago | 0

| accepted

Answered
Is it possible to build custom UI components in app designer that can be visually re-used in app designer?
nonce = {'00' '11' '22' '33' '44' '55'}; toAdd = hex2dec('01'); for k = 1:5 nonce{k} = dec2hex(hex2dec(nonce{k}) + toAdd)...

21 days ago | 0

Answered
How to plot several curves on the same figure plot with the same StartTime
Do you mean https://www.mathworks.com/help/matlab/ref/timeseries.synchronize.html ?

21 days ago | 0

| accepted

Answered
r2018a: newer MATLAB version can't automatically determine the correct xlim and ylim for plots
The question is not clear, because there is no unique definition of what is "the correct xlim and ylim" value. It is a question ...

21 days ago | 0

Answered
i am trying to segment MRI images using Kmeans but i can not solve this problem "" Error using reshape To RESHAPE the number of elements must not change. Error in (line 148) AA1=reshape(Cluster1,[wd wd]);"" ,any help please?
You define [r, c] = size(Input); Length = r*c; Cluster1=zeros(Length,1); wd=256; In the line AA1=reshape(Cluster1,[wd wd]...

22 days ago | 0

Answered
Solving all math and teaching it as you go
This will be an extremely demanding project. You find some software which can simplify symbolic expressions, e.g. Matlab's Symbo...

24 days ago | 2

| accepted

Answered
Help running a while loop?
Use a for loop if the number of steps is known in advance: A(1) = 1E10; dt = 0.1; for t = 1:1001 dA(t) = -0.005 * A(t); ...

24 days ago | 0

Answered
how to initialize the permutation sequence ?
Maybe you mean: T = num2cell(randperm(65536, 65536));

24 days ago | 0

| accepted

Load more