Answered
Simple Matrix Manipulation Help
There is no solution for that. solve(A*X == B) Look at entry #11 in B, where you have a 0 where the sequence would otherwise p...

1 day ago | 0

Answered
separate table data in to sub tables
G = findgroups(YourTable.name); output = splitapply(@(varargin) {table(varargin{:}, 'VariableNames', YourTable.Properties.Varia...

1 day ago | 0

Answered
Format of mat file in Version R2019a
The documentation for MAT 1.0 and MAT 2.0 files is lost to history as far as I can tell. The documentation for MAT 3.0 and MAT ...

1 day ago | 0

Answered
What's the difference between Matlab runtime and Matlab(R) Compiler Runtime
The 7.14 software is for applications compiled with r2010b

1 day ago | 0

| accepted

Answered
How can I generate reciprocal of a matrix
I suspect that you want inv(A) but possibly you want 1./A In most cases inv() is better avoided in favor of using the \ opera...

1 day ago | 0

Answered
how i can save the value of two signals when they are equal
N = 14; a = zeros(1, N); b = 1; for K = 1 : length(signal_1) if signal_1(K) == signal_2(K) a(b) = signal_1(K); ...

2 days ago | 1

Answered
License Manager Error -9
Yes. It is permitted to run MATLAB dual-booted on the same machine, as long as the hardware identification information matches. ...

2 days ago | 1

| accepted

Answered
STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)
new_frequency(1:rowRPM(1,1)) = str2double(frequency(1:rowRPM(1,1))); In the special case where you are converting all of the en...

2 days ago | 1

Answered
How to make a matrix with negative indexes?
Modify https://www.mathworks.com/matlabcentral/fileexchange/33301-zero-based-indexable-arrays-oop-exercise Another approach is...

2 days ago | 0

Answered
How I can repeatedly divide a binary image ?
Code for repeatedly dividing was provided at https://www.mathworks.com/matlabcentral/answers/456856-how-can-i-loop-over-a-binary...

2 days ago | 0

Answered
Adding multiple fields and values to structure array
Provided you are setting all of the fields of data(k), then you can use data(k) = struct('PairNum', pairNum, 'level', level, 't...

2 days ago | 1

| accepted

Answered
How does Matrix(3002:2001:1999998)=0.4 works?
It is due to linear indexing. Variables can be indexed by a single number which is the number of elements from the beginning in ...

2 days ago | 0

Answered
How can I append the same variables on mat file?
After you have created m = matfile() then new_row_of_values = something appropriate; s = size(m, 'my_variables'); m.my_vari...

2 days ago | 1

Answered
Recursive computation using multi gpus
No. Within any one process, in order to send commands to a different GPU, you need to select the GPU. Selecting a GPU synchroni...

2 days ago | 0

Answered
How to create a sliding window??
Apply regionprops() to find the bounding boxes. Sort the bounding boxes by lower left corner, according to x within y (that is, ...

2 days ago | 0

Answered
How to use sliding window technique to detect one single line
Use nlfilter() to apply nonlinear algorithms to sliding windows. That said, there are some algorithms that can be much more eff...

2 days ago | 0

Answered
how can I compute memory usage?
You can turn on memory profiling; https://www.mathworks.com/matlabcentral/answers/214247-allocated-freed-self-memory-and-peak-me...

2 days ago | 1

Answered
ismember 0×0 empty logical array to logic
The obvious answer would seem to be to test if isempty(A) || ~ismember(A,ID) If you were hoping there were a hidden preferenc...

2 days ago | 0

| accepted

Answered
How do I write this equation in Matlab?
There is a trick to solving inequalities: convert them to equalities. P/R < 1 implies P < R implies P + dP == R for some posit...

2 days ago | 0

Answered
how can we create database with .mat files ?
Yes, it is possible. It is, however, of low value to do so. .mat files are just files, so they can be read in as arrays of uint...

2 days ago | 0

Answered
how to make two differnt size array into same
[T3, ia, ib] = intersect(T1, T2); T3Temp = Temp(ia); T3RH = RH(ib); yyaxis left plot(T3, T3RH); yyaxis right plot(T3, R3Te...

2 days ago | 1

| accepted

Answered
Incidence matrix of a graph
If you have constructed a graph() object named G, then full(G.adjacency)

3 days ago | 0

Answered
How can I create a loop that doesnt allow the same number to be input twice?
if length(unique(M)) ~= numel(M) error('You entered some number twice') end

3 days ago | 0

Answered
[student] Asking your help to solve an issue with a function creating algebric loop
The problem is not that block: the problem is that you have blocks in which the output is connected to the input, but the calcul...

3 days ago | 1

Answered
One instance running issue
Each run of the compiled executable is a separate process. The global variable will be destroyed between runs, same as if you ha...

3 days ago | 0

Answered
how to prevent reordering of terms by symbolic math functions
Yes, there is a way. You can create a whole bunch of MuPAD code to use the general framework of the internal symbolic engine in ...

3 days ago | 0

Answered
What license would cover the following application: making public videos/live streaming tutorials regarding Matlab/Simulink
Student licences only cover MATLAB use for courses and degree requirements. Home license could potentially cover what you des...

3 days ago | 0

Answered
How can I average datetimes of my array?
Not array2timetable. Use table2timetable

3 days ago | 0

Answered
Calculating eigenvalues of matrices of symbolic matrices
The symbolic toolbox always considers a resolved symbolic variable to be a scalar, never as a stand-in for a matrix. You would h...

3 days ago | 0

Answered
For loop count question
a1 = -70:5:100; a2 = -60:5:60; a3 = -50:10:50; a4 = -40:10:40; N_a1 = length(a1); N_a2 = length(a2); N_a3 = length(a3); N...

3 days ago | 0

| accepted

Load more