Answered
How to interpolation between matrices
Assuming that you want to interpolate between the corresponding elements of those 4x4 matrices, then you could do something like...

3 years ago | 0

| accepted

Answered
How to map one array elements to another array elements?
Method one: indexing: num = [1,2,2,4,3,1]; val = [40,30,20,10]; out = val(num) Method two: interpolation: out = interp1(val...

3 years ago | 0

| accepted

Answered
Choosing a function handle from a group of function handles
s = sprintf('f_%d_%d',m,n); f = str2func(s);

3 years ago | 0

| accepted

Answered
Using contains() with dir() to search files in folder
Replace this comma-separated list files_in_folder.name with this cell array of filenames: {files_in_folder.name} https://www...

3 years ago | 1

Answered
Logical array indexing unexpected behaviour.
"I have been unable to find anything about this behavior so please enlighten me" https://www.mathworks.com/help/matlab/matlab_p...

3 years ago | 0

Answered
How to use Greek Letters in equation
The MATLAB approach: syms omega mu epsilon sigma k1 = omega .* sqrt((mu .* epsilon)/(2)) .* sqrt((1 + ((sigma)/(epsilon .* ome...

3 years ago | 0

Answered
How can I change a matrix name in workspace during my script ?
The problem is caused by your data design, which forces meta-data into variable names. Forcing meta-data into variable names mak...

3 years ago | 1

| accepted

Answered
n E Z => sin(n*pi) = -1 ?
n = sym(100000000000000000000000000000) sin(n*pi)

3 years ago | 1

Answered
Sort values in a cell array
A = [90,45,38,51]; B = [8,1,8,3]; [~,~,X] = unique(B); C = accumarray(X,A(:),[],@(v){v}) Checking the content of C: C{:}

3 years ago | 1

| accepted

Answered
How to get coordinates of largest element in an array?
format long G M = [-2.37702213697260e+17,-2.33711662054550e+19,-615937600693473,-4.41919914907522e+19,-3.50291921355524e+20;-2....

3 years ago | 0

Answered
Warnings in Command Window
"I'm not if that's causing the problem." The problem is that you have added many subfolders to the MATLAB search path, that sho...

3 years ago | 2

| accepted

Answered
How do I sort all the columns of a table based on the first column?
Where T is your table: T = sortrows(T,'Date')

3 years ago | 1

| accepted

Answered
Reading numbers from String
Another approach: str = {'SRm40_','SRp5_'}; vec = str2double(regexprep(str,{'[A-Z_]+','m','p'},{'','-','+'}))

3 years ago | 0

| accepted

Answered
how to use an array as the input variable for function
You can use a comma-separated list: https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html https://www.m...

3 years ago | 0

Answered
Organize matrix data into Bins using loop
"Is there a more efficient way to Bin this data???" Using inbuilt functions will be the most efficient approach, e.g. DISCRETIZ...

3 years ago | 0

| accepted

Answered
Read date from .CSV in native format of yy-mm-dd
As far as I can tell, it is not possible to specify the pivot year when calling READTABLE et al. But you can do it afterwards: ...

3 years ago | 0

Answered
How to reshape the three dimensional array in 2D matrix?
format compact A = cat(3,[8,2;3,9],[7,6;1,5]) M = reshape(permute(A,[2,1,3]),4,2)

3 years ago | 1

Answered
Compare two strings and count the same words
want = "Gruppe 1; Gruppe 2; Gruppe 3; Gruppe 3; ; Gruppe 6"; vgls = "Gruppe 1; Gruppe 2; Gruppe 3; Gruppe 4; Gruppe 5; Gruppe 6...

3 years ago | 0

| accepted

Answered
What character to type for [M,I] = min(A,[],'all',___)
In the MATLAB documentation underscore is used to indicate "any other valid options shown above, in this location". You do not ...

3 years ago | 1

| accepted

Answered
convert dates to specific format
My guess is that you have unfortunately stored each date as one numeric value, whose digits just happen to coincide with the dat...

3 years ago | 1

Answered
How to combine two one dimensional cell arrays into one two-dimensional cell array?
Where A and B are your cell arrays: C = cellfun(@horzcat,A,B,'uni',0)

3 years ago | 0

| accepted

Answered
I am trying to save struct to file and load it but when I load it I can't get field names
Load the data like this: F = '/sci/labs/mbreker/hadasak/icore-data/MAPS_seq/Data/example_July_2016/Analysis/subjects_queries.ma...

3 years ago | 0

| accepted

Answered
Splitting n by 1 matrix
A = transpose(1:12552); C = num2cell(reshape(A,24,[]),1) You can eaily access the content of the cell array C using indexing, ...

3 years ago | 2

| accepted

Answered
how to identify empty , non-empty char matrix condition?
M = [... '01:04:00' '01:03:00' ' ' '01:01:00']; strcmp('',cellstr(M)) % CELLSTR removes trailing whi...

3 years ago | 0

| accepted

Answered
how to find the filed in structure in which a word belongs to?
You can get the index of a specific name using a comma-separated list and STRCMPI (or MATCHES, etc): For example, where S is yo...

3 years ago | 0

| accepted

Answered
How to plot all the graphs from different folder and save them in a different folder by name of folder
"It is basically going to take me alot of time by doing one by one." Don't! Computers are really only good at one thing: very s...

3 years ago | 1

| accepted

Answered
How can I convert a .wav file to .txt file with format mentioned below?
Your code has a few issues to be fixed: as you noticed, if you want any characters to be printed between those numbers then you...

3 years ago | 1

Answered
sort each row of a matrix in a descending order
A = [1 2 3; 4 5 6; 7 8 9] B = sort(A,2,'descend')

3 years ago | 0

| accepted

Answered
Question about non-existing file
" If I use the function dir() it says there is another file named '_Pelvis_Walk.csv'." No, your screenshot clearly shows that t...

3 years ago | 1

| accepted

Answered
Assigning values from one array to string values of another array
Are you trying to do something like this? v = 1:9; id = compose("idea%d",v(:)); sv = [5.7065; 3.2885; 7.8947; 5.8056; 5.7619;...

3 years ago | 0

Load more