photo

Hugo


Last seen: mer än ett år ago Active since 2013

Followers: 0   Following: 0

Message

asdsa

Statistics

  • Thankful Level 4

View badges

Feeds

View by

Question


How to implement a for cycle to run a sequence of text files with the system command
Hi, I would like to open a sequence of files by combining a for cycle and a list of files to open. How can I do that? I att...

mer än ett år ago | 1 answer | 0

1

answer

Question


how to stack series in a 3-D bar chart
Hi, I would like to stack 3 series (a,b and c) in a single 3-D bar chart. However, the code that I have does not work properl...

ungefär 2 år ago | 0 answers | 0

0

answers

Question


3D bar chart in MATLAB
Hi, I would like to build a 3D bar chart in MATLAB. How can I do it? Best regards, Hugo

ungefär 2 år ago | 1 answer | 0

1

answer

Question


How to build a 3D chart from a 2D table
Hi, I have a 10*20 table, with each cell having a numeric value. I would like to build a 3D chart, having x as the dimension ...

mer än 2 år ago | 1 answer | 0

1

answer

Question


How to build a 3D chart/plot from scattered/raw data?
Hi, I would like to build a 3D chart from raw data with coordinates (x,y,z). How can I build a 3D chart from raw/scattered va...

mer än 2 år ago | 1 answer | 0

1

answer

Question


How to build a" "for" cycle to concatenate strings
Hello, I have a code that prints: Var1= Var2= Var3= The code is: sa="VAR" aaa="=" i1=num2str(1) i2=num2str(2) i3=n...

mer än 2 år ago | 1 answer | 0

1

answer

Question


Can't copy files using the DOS() command in MATLAB
I am trying to copy an external file a.txt to a new file, named b.txt, by using the following code: command='COPY C:\text\a.txt...

mer än 2 år ago | 0 answers | 0

0

answers

Question


How to identify occurences in a text file and save both number and text into arrays
Hi, I would like to open an external text file, with n lines and identify the lines which start with "VAR=" A typical line ...

mer än 2 år ago | 0 answers | 0

0

answers

Question


how to count the number of lines of an external txt file
Hi, I would like to know how I can count the number of lines (not empty) of an external text file, let's say, a.txt, and save...

mer än 2 år ago | 2 answers | 0

2

answers

Question


How can I open an empty external text file and fill it with the concatenation of two vectors and a char inbetween
I have two vectors one is: a=[1.4;3.1;6.5] and the other one is: b={VAR1,VAR2,VAR3} How can I open an empty external te...

mer än 2 år ago | 1 answer | 0

1

answer

Question


How can I copy lines of an external text file to another file
Hi, I would like to know how can I open a file, named a.txt (which in attach), and copy all the lines, from the line 5 to the...

mer än 2 år ago | 2 answers | 0

2

answers

Question


How to repeat a prompt until a expected number is written by the user
Hi, I would like to repeat a prompt to ask if the user wants to Stand=1, Sit=2, Sleep=3, Listen to Music=4. So, an integer nu...

mer än 2 år ago | 1 answer | 0

1

answer

Question


How to concatenate lines in cell arrays
Hi, I have a Cell array, name DATA with 5*50 cells. Each cell has a 1000*30 matrix I would like to obtain a new matrix that ...

mer än 2 år ago | 1 answer | 0

1

answer

Question


how to easily and quickly change the variable names (headers) of multiple tables
Hi, I have 20 tables, let's call them A,B,C.....etc. with size of 1000 lines and 40 column. I would like to concatenate them...

mer än 2 år ago | 2 answers | 0

2

answers

Question


how to get/obtain a specific column of a cell array
Hi, I have the following code, that transforms a 3D array into a cell array. This code was already suggested on the thead: ho...

mer än 2 år ago | 1 answer | 0

1

answer

Question


how to fill an array with data from intercalated/multiple range columns
Hi, I have a matrix A, with dimensions 4000*50. I would like to select lines 1 to 2000 (1st dimension) and columns 1 to 40 an...

mer än 2 år ago | 1 answer | 0

1

answer

Question


how to use "For" cycles for ranges of 2D arrays
Hello, I have the following code: D11=A1(1:1000,:) D12=A1(1:2000,:) D13=A1(1:3000,:) D14=A1(1:4000,:) D21=B1(1:1000,:) D2...

nästan 3 år ago | 0 answers | 0

0

answers

Question


how to use a for cycle with strings as variables
Hello, I would like to write 10 variables at once in separate files. Is there a way to make my code more efficient? I am thinki...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to do a for cycle for cell arrays
Hello, i have a cell array that is has 20 cells of 1000*20 tables I am trying to write the following code: FA1=data2{1,...

nästan 3 år ago | 2 answers | 0

2

answers

Question


how to remove columns from a 3D array, considering user input
Hello, I have a 3D matrix A, with dimensions 50*1000*30. I would like to remove some columns of the 30 I have (3rd dimension). ...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to do correlation tests to a cell array
Hi, I have a cell array with 24 cells. I am trying to write a correlation between the variables inside each cell. In each cell,...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to build histograms from a cell array
Hi, I have a cell array with 20 cells of 1000*10 tables. I would like to build 20 histograms, each for each cell of the array...

nästan 3 år ago | 0 answers | 0

0

answers

Question


how to fill 3D array with alternate data from another 3D array
Hi, I have a 3D array called data 1, with dimensions (51,1000,50) I would like to fill another 3D array, called data, with d...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to convert a 3D array into a n 2D arrays
Hi, I have a 3D array, called A, that is 20*1000*30. How can I convert the matrix A into 20 2D arrays, with size 1000*30, ...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to run feature selection in a 3D matrix
Hi, I have a 3D matrix in MATLAB. I would like to run the function fscmrmr(), in which the column 32 is my reference variable...

nästan 3 år ago | 1 answer | 0

1

answer

Question


how to run principal component analysis in a 3D matrix
Hi, I am trying to run principal component analysis, pca() function to a 3D matrix. It does not work and I think it only wo...

nästan 3 år ago | 2 answers | 0

2

answers

Answered
How to concatenate 3D matrixes effectively/fast
Hi, Thank you for your reply. However, I am not trying to concatenate null matrixes. Instead, I am pre-allocating it. The mat...

nästan 3 år ago | 0

Question


How to concatenate 3D matrixes effectively/fast
Hi, I have 5 matrixes, named M1,M2,M3,M4 and M5. They are all 48*1000*C, with C different in each case. I would like to conca...

nästan 3 år ago | 2 answers | 0

2

answers

Question


how can I modify a triple "for" cycle to run faster?
Hi, I have the following code, where I fill a 3D matrix with data from a struct, which has tables inside. The goal is to conc...

nästan 3 år ago | 1 answer | 0

1

answer

Question


How to use a for cycle for opening .mat files
Hi, In the directory c:\MAT (it's not my workspace directory), I have the following .mat files: A1B1.mat A1B2.mat A1B3.m...

nästan 3 år ago | 2 answers | 0

2

answers

Load more