Answered
How can i make the Temp matrix to contain all the values of T calculated in both conditions
H = [ 1:10:100] L = 0.0065 %K/m T0= 288.15 Temp= zeros(j) for j= 1:length(H) for B = H<=11 % till 11 km ...

5 years ago | 1

| accepted

Answered
Running a matlab file multiple times on the same computer
Short answer is yes, it is possible, but unfortunately I am not exactly sure how to do it. If I remember the method I saw it was...

5 years ago | 0

Answered
How to add a new column in a txt file with if condition
What kind of data do you have in the file? The type of data really determines the complexity of this answer. The basic steps of ...

5 years ago | 0

| accepted

Answered
Opening mat files with uiopen and copying data to array
It seems like your issue isn't so much opening specific files, but identifying new variables. With a bit of trickery you can ide...

5 years ago | 0

Answered
Help finding the first minimum value in an array and indexing the value in a new array!!!
Part of the issue you're having is that your if statement doesn't have an actual condition in it. if (find((v(i)<v(i+1)) && (v(...

5 years ago | 0

| accepted

Answered
Indexing inside a for loop when satisfying a condition
I usually get around this by having a second index which is advanced only with the condition. c = 1; % Index of 'Index' for j=...

5 years ago | 1

| accepted

Answered
How do it store a particularText file into an array ?
I would suggest loading the file and then splitting. string = readfile('TestLists.txt'); lines = regexp(string,'\n','split');

5 years ago | 0

Answered
Extract matrix from matrix
In general you should be able to do this with logic indexing fairly easily. I'm a little confused though how or why you have a 2...

5 years ago | 0

Answered
Loop question (general programming)
I would suggest creating an array of the possible conditions you want. A = {'param'; 'm_param'; 'g_param'}; Then you can just ...

5 years ago | 1

| accepted

Answered
How to find average of all maltab files in folder and write avrage of each file in single excel file.
You are receiving that error because you are trying to load the directory string, not the file. M = load(matFiles(k).name);

5 years ago | 1

| accepted

Answered
read empty line by textscan
I'm going to guess that the extra lines are not consistent? Generally, I would suggest reading the entire file in as one string...

5 years ago | 0

Answered
help with if conditional statement
I don't really understand all of what you're looking to do, but perhaps I can give some basic outline of how you can set up the ...

5 years ago | 0

Answered
Extract rows an put them in a different array based on specific column values.
I'm a little confused what exactly you're looking for here, but hopefully I can at least get you started. To retain all rows wh...

5 years ago | 0

Answered
How to create code to remove rows from a table
You're on the right track by using logic to identify whether a row contains a 0, but you would be better off marking different r...

5 years ago | 1

| accepted

Answered
Plot data from two columns in csv
data = csvread ('eegID.csv',1); col1 = data(:, 1); col2 = data(:, 2); plot(col1, col2) csvread cannot read non-numeric chara...

5 years ago | 0

Answered
Write cell array with multiple elements in the cell to Excel File
xlswrite is not going to write multiple contents of a single cell because an Excel cell can only contain one piece of informatio...

5 years ago | 0

Answered
How do i tell the player they already guessed a number?
I would suggest keeping an array of the guessed values, and then checking if the number exists in that array. % Outside the loo...

5 years ago | 0

Answered
Moving sum in a timetable
I'm a little bit confused what you're asking for, but here is a first attempt. As I understand you are looking for each row to h...

5 years ago | 1

| accepted

Answered
Change the time format ?
I'm assuming that you have an array of doubles. This works fine for the inputs, but will not be possible with the outputs. I am ...

5 years ago | 1

| accepted

Answered
How to change precision in plot?
The values aren't actually rounding up, that's a matter of display precision. This is a guide that should help you customize it....

5 years ago | 0

Answered
how to store all values of a matrix variable during the loop
You need to add indexes to your outputs. Typically, it is usually appropriate to use your loop index value as the index, however...

5 years ago | 0

| accepted

Answered
Import CSV file using readtable gives wrong date time format.
In 'newer' versions of Matlab (sorry, I don't know when this started) it is possible to define a datetime format as a named card...

5 years ago | 0

Answered
Plotting multiple inputs on a single figure
I you are looking for separate plots like that I would suggest using subplot. This will allow you to present multiple plots in o...

5 years ago | 0

Answered
Read every nth line of text file with different deliminters across a single line
You might have an easier time using textscan instead of fgets or dlmread. You have to specify your format for a row, but that sh...

5 years ago | 1

| accepted

Answered
how to select from identical rows based on their associated value in one column?
There might be some fancy function I don't know, but it's certainly possible to do this with a loop. I cannot comment on the spe...

5 years ago | 1

Answered
Code that makes matlab jumping loops without fininishing the remaining iterations.
I'm not entirely sure I understand what you're asking for, but it seems like you want to run all iterations of the d loop with t...

5 years ago | 0

Answered
Could you please correct my program for single variable but different size and many outputs.
You are losing the different values of A because you are overwriting the value each time you run a new calculation. The way to p...

5 years ago | 0

Answered
Guess my favourite colour!
You are going to have several problems with doing any kind of comparison of the color answers to make them relate to numbers. Th...

5 years ago | 0

Answered
How to extract specific text (eg. serial number) from single/multiple text file
It is possible to use find or strcmp, but I think your best bet for this is to use regexp. If the serial number is in a consiste...

5 years ago | 0

Load more