Mohammed Kagalwala
Followers: 0 Following: 0
Feeds
提问
Simulink C code generation error
I'm building a complex custom model (Matlab 2019b), I get the following error, Unexpected or internal error encountered in "...
4 years 前 | 0 个回答 | 0
0
个回答提问
Matlab coder logical indexing structs
Hello, I currently have a struct defined as such, struct(1).a struct(2).a struct(3).a ... struct(N).a where the field a...
5 years 前 | 0 个回答 | 0
0
个回答提问
Indexing portions of a vector with array
Hi, I currently have a vector a that is 12 x1. I want to index it such that I get the following vector q = [a(4:7),a(4:7)]. I ...
5 years 前 | 1 个回答 | 0
1
个回答提问
Index chunks of cell to make block diagonal matrix.
Hi, I currently have a cell structure where each element is a 6x6 matrix. I have an array l = [0 1 2 0 4], based on this a...
5 years 前 | 0 个回答 | 0
0
个回答提问
Block diagonal matrix of identity times scalar.
Hi, I currently have a vector a = [1 2]', I wish to create a block diagonal matrix. Each block is identity (3x3) times the corr...
5 years 前 | 1 个回答 | 0
1
个回答已回答
Skew symmetric matrix generation
s = [1 0 0 2 0 0 3 1 2]'; % find size and logical index N = size(s,1); tf1 = mod(0:N-1, 3) == 0; tf2 = mod(0:N-1, 3) == 1;...
Skew symmetric matrix generation
s = [1 0 0 2 0 0 3 1 2]'; % find size and logical index N = size(s,1); tf1 = mod(0:N-1, 3) == 0; tf2 = mod(0:N-1, 3) == 1;...
5 years 前 | 0
| 已接受
提问
Skew symmetric matrix generation
Hi, I'm currently stuck on converting a 3*N x 1, where N is an integer value, vector into chunks of skew symmetric matrices. F...
5 years 前 | 1 个回答 | 0
1
个回答提问
Zero a cell matrix with varying number of zeros
Hi, I have a cell matrix, C, that's n x n, and an array A of size n x 1. The entries of array A dictate the no. of column of z...
5 years 前 | 1 个回答 | 0
1
个回答已回答
How to set the diagonal of a cell array of matrices?
I found the solution ! For a cell array A of size n x n, one can do the following A(logical(eye(n,n))) = {eye(3,3)};
How to set the diagonal of a cell array of matrices?
I found the solution ! For a cell array A of size n x n, one can do the following A(logical(eye(n,n))) = {eye(3,3)};
5 years 前 | 1
提问
How to set the diagonal of a cell array of matrices?
Hi, I'm looking to set the diagonal of my cell array to identity, specifically eye(3,3). I know a simple for loop solution exi...
5 years 前 | 2 个回答 | 0
2
个回答提问
Indexing sections of arrays
Is there an easy way to extract every section's of n elements of a vector in MATLAB and skip the next n? Say we have x = linspa...
5 years 前 | 1 个回答 | 0
1
个回答提问
Sum of matrix times scalars
Hi, I have a series of 3x3 matrices T1, T2, T3 ... TN. In addition, I have a series of scalars a1, a2, ... aN. I wish to perfo...
5 years 前 | 1 个回答 | 0