답변 있음
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...

22일 전 | 0

답변 있음
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...

23일 전 | 0

| 수락됨

답변 있음
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: ...

23일 전 | 0

답변 있음
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)

23일 전 | 1

답변 있음
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...

23일 전 | 0

| 수락됨

답변 있음
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 ...

23일 전 | 1

| 수락됨

답변 있음
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...

24일 전 | 1

답변 있음
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)

24일 전 | 0

| 수락됨

답변 있음
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...

24일 전 | 0

| 수락됨

답변 있음
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, ...

24일 전 | 2

| 수락됨

답변 있음
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...

24일 전 | 0

| 수락됨

답변 있음
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...

26일 전 | 0

| 수락됨

답변 있음
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...

27일 전 | 1

| 수락됨

답변 있음
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...

27일 전 | 1

답변 있음
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')

27일 전 | 0

| 수락됨

답변 있음
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...

27일 전 | 1

| 수락됨

답변 있음
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;...

27일 전 | 0

답변 있음
how to convert hours to 'yyyy-MM-dd hh:mm:ss' format?
dtm = datetime(2012,4,24,'Format','yyyy-MM-dd HH:mm:ss') + hours(0:72).'

28일 전 | 0

| 수락됨

답변 있음
How to extract the first column of a structure array and save it as a different array
fnm = {files.name} https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html https://www.mathworks.com/matl...

28일 전 | 0

| 수락됨

답변 있음
long integers in matlab
"what would be the recommended approach if I don't have access to Symbolic Math TB?" You can download VPI by clicking on the bi...

28일 전 | 1

| 수락됨

답변 있음
Convert string to variable.
This is the cause of your problems right here: US_matrix = [1 0 0; 0 1 0] UK_matrix = [0 0 1; 1 0 0] Having meta-data in vari...

28일 전 | 0

| 수락됨

답변 있음
How to extract a specific field value from struct
https://www.mathworks.com/help/matlab/matlab_prog/create-a-structure-array.html load('struct.mat') cc val = cc.NumObjects

28일 전 | 0

| 수락됨

답변 있음
How to combine two cell arrays as variables with changing sizes in a for loop for a fullfile command?
for ii = 1:numel(A7) jj = ceil(ii/10); F1 = fullfile(H5{jj},A7{ii}) end

29일 전 | 0

| 수락됨

답변 있음
How can I store all outputs from a nested for loop?
This is easier using linear indexing: a = rand(2,3); b = rand(2,3); c = rand(2,3); z = nan(numel(a),3); % preallocate for k...

약 1달 전 | 0

| 수락됨

답변 있음
save two variables using num2str
"what is wrong with this?" Forcing meta-data (pseudo-indices) into variable names, thus making your code slow and complex. For...

약 1달 전 | 0

답변 있음
Table to Array conversion using a for loop
A much better approach stores the imported data in the structure returned by DIR: P = 'absolute or relative path to where the f...

약 1달 전 | 0

답변 있음
Multiplication between two matrices with different number of rows
C = permute(A,[1,3,2]) .* reshape(B,1,[])

약 1달 전 | 0

| 수락됨

답변 있음
Using regular expressions to recognize pattern based on multiple lines
str = fileread('dogbone_raise3D.txt') out = regexp(str,'(?<=;TYPE:SOLID-FILL\s+;WIDTH:\S+\s*\n\s*)[^;]+','match') out{:} Note...

약 1달 전 | 1

| 수락됨

답변 있음
Averaging elements for a cell within a cell array
Where C is your cell array: V = mean([C{:}],2) https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html h...

약 1달 전 | 0

| 수락됨

답변 있음
find 'last' function not working
"Any ideas on why this happens?" Yes. "Could it be a bug or am I doing a logical error? " You are doing several logical error...

약 1달 전 | 1

| 수락됨

더로드