Answered
Matlab 2015a unable to find C++ compiler in windows10 even after installing microsoft professional C++ 2012. Can anyone help? I initially tried installing SDK7.1 but i was gettting .net framework4 installation errors.
https://www.mathworks.com/matlabcentral/answers/233850-how-can-i-install-sdk-7-1-on-windows-10 https://www.mathworks.com/matlab...

7 years ago | 0

Answered
Hi guys. I need help splitting a number into its individual parts and then add them. E.g. the number would be 1994 = 1 + 9 + 9 + 4 = 23
N = 1994; m = floor(log10(N)); D = mod(floor(N ./ 10 .^ (m:-1:0)), 10); >> D = [1, 9, 9, 4]

7 years ago | 3

Answered
Stepping Through Text Documents
See https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files A more specific answer is p...

7 years ago | 0

Answered
Output argument "px" (and maybe others) not assigned during call to "function1"
If the initial value of varx is smaller than tol already, the body of the while varx>=tol loop is not entered at all. Then e.g. ...

7 years ago | 0

| accepted

Answered
where is the the porblem in audiowrite?
In the original question you write: AUDIOWRITE('test.wav',s,srate) In the comment you mention: audiowrite('test.wav',s,t) Th...

7 years ago | 0

Answered
How can I open a file in a compiled application?
The error message is clear in this point: You cannot use open in compiled applications. This is not a limitation by the trial ve...

7 years ago | 0

Answered
Permission to write into text file
Do not use 'mojo.txt' as file name without a path. Remember, that any GUI or timer callback could call cd to change the current ...

7 years ago | 0

| accepted

Answered
I am having this error. Could you help?
The error message is clear: You provide a name, which is not an existing file. What is exactly hidden in the omitted rest of: T...

7 years ago | 0

Answered
How to append cell arrays with a very specific form
Or: C = {... 'Rating1' [] [] [] '8'; ... 'Rating1' [] [] '3' []; ... 'Rating1' '2' [] [] []; ... 'Rating1' [] '4' [...

7 years ago | 0

Answered
Error using mex 'No supported compiler was found' on Mac.
Posting the error message offers new insights. Did you try this already - in a command shell of the operating system: sudo xcod...

7 years ago | 1

Answered
Shuffle binary vector (n0 = n1) with constraints: number of consecutive repetitions
A brute force approach: function V = ShuffledVector x = 100; % Number of elements, assumed to be even Z = 5; V = [true(1, x...

7 years ago | 2

| accepted

Answered
how to calculate the area under a curve?
The area between a curve and the X axis is determined by the integral. So use trapz: x = 0:100; % Square brackets waste time ...

7 years ago | 8

Answered
Writing data to a structure array without loop
As written by Stephen before: There is no vectorized way to set the value of sub-fields of struct arrays. The expression [ax(...

7 years ago | 0

| accepted

Answered
How can I vectorize this function with nested FOR loop?
n = 1000; L = rand(24, n); T = zeros(n, 1); for i=1:n K = exp(-4*sum((L(:,i) - L) .^ 2, 1) ./ sum(L(:,i).^2, 1)); ...

7 years ago | 0

Answered
which matlab is compatible with windows 10, 64bit machine?
I'm running Matlab R2009a with the Signal Processing toolbox successfully under Windows 10. The installation and setup of the Me...

7 years ago | 0

Answered
Difficulty storing Output from Loop (Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 2-by-1)
To store arrays of different sizes, use a cell array: KMaxSBPFullTime = cell(1, 19); for i = 1:19 KMaxSBPFullTime{i} = ... ...

7 years ago | 0

| accepted

Answered
Which way of programming is more efficient and faster?
%Case 1 X = 1; Y = X + 4; Z = X + Y; %Case 2 X = 1; Y = X + 4; Z = X + Y; The documentation of Matlab stated, that the J...

7 years ago | 2

Answered
having problem to solve somthing in matlab
S = sum(x) is equivalent to S = 0; for k = 1:numel(x) S = S + x(k); end If you want to, you can call this as a subfunc...

7 years ago | 0

Answered
Nested loop problem with the second index
The problem of you code was cp(i.*j,:). i*j is not a growing index. In the 1st iteration 1*1 is fine. For i=1 it works for the c...

7 years ago | 1

| accepted

Answered
Can I overwrite a function in a compiled program with a custom version?
This will not work. And if it works, it would conflict with the license conditions. Do not provide parameters as M-functions, b...

7 years ago | 0

| accepted

Answered
MATLAB DualCPU Hyper-Threading support
Yes. Matlab will use the available cores. At least most likely. Matlab might split the array columnwise and if the input has 5 c...

7 years ago | 0

| accepted

Answered
Can anyone help me to understand the logic of below code
Start with a simplification of the code to make it easier to read: % find the points in the front surface for z = min(Zb):max(...

7 years ago | 0

Answered
Text files for export the data
Storing numerical data in text files has the disadvantage, that the values need to be converted twice. Prefer storing the data i...

7 years ago | 0

Answered
how to change the bit of any matrix?
A = [12, 23, 32, 14]; B = bitset(A, 4, 0) Or: S = de2bi(A); S(:, 4) = 0;

7 years ago | 0

| accepted

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".

7 years ago | 13

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...

7 years 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...

7 years 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...

7 years 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...

7 years ago | 1

| accepted

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...

7 years ago | 1

Load more