질문

Finding common x values along with the corresponding y values.

I have to sets of data, First set comprises of x_exp and y_exp. And second set comprises of x_sim and y_sim. They are as follows...

9달 전 | 답변 수: 2 | 0

질문

How to switch cases if certain file is not found in the mentioned directory?

My script run three different conditions at a time. For this it takes three files as input from certain directory. But sometimes...

9달 전 | 답변 수: 1 | 0

질문

Splitting a matrix based on certain values in the rows

I have a matrix A like this: A = [911 911; 0 2; 8 5; 7 3; 911 911; ...

9달 전 | 답변 수: 2 | 0

질문

How to read data from a text file based on the title?

I have two text files. First one is "Sample01.txt". Which is like this.. And the second one is "Sample02.txt". Which is like ...

9달 전 | 답변 수: 1 | 0

질문

How to call another matlab scripts which are in the same directory?

I have one "Main_File.m" which i am running from a bash script. Inside the "Main_File.m", I am calling two of the matlab script...

9달 전 | 답변 수: 1 | 0

질문

How to show results for curves in a graph?

I have a graph with 5 curves. I have certain results for each curve. How can i print them in the graph just like legend?

9달 전 | 답변 수: 1 | 0

질문

How to assign color for different column in a group wise bar chart?

I am creating a bar chart of 4 groups of data each containing 3 columns. I want to assign red for highest column and blue for sm...

10달 전 | 답변 수: 0 | 0

질문

Why my barchart's 'xticklabel' is skipping the odd numbers and adding 0 and another number at the end?

This is my code where i expect 1,2,3,4,5 as "xticklabel". But MATLAB is adding 0 and 6 at the end and skipping 1,3,5! EFV = [...

10달 전 | 답변 수: 1 | 0

질문

Why my subplot command skipping the first graph's title and labels?

This is my code where i am plotting two bar plot in one graph. However my first graph should be case:28 then case:29 as mentione...

10달 전 | 답변 수: 1 | 0

질문

How to read .txt files named as number?

In one of my folders i have files like "Mech_01.txt", "Mech_02.txt", "Mech_03.txt"......... as well as files like "Mech_A.txt",...

10달 전 | 답변 수: 2 | 0

질문

How to integrate a vector?

I have equation like this. E(x) = and another one is like. E(x) = I don't have the function, rather i have x and y (y= ...

10달 전 | 답변 수: 2 | 0

질문

How to color a matrix based on the values in matlab?

I have a matrix of 9 by 5. I want to colur them in a table so that the higher values got red and the lowest got yellow. The inte...

11달 전 | 답변 수: 2 | 0

질문

How to get corresponding file in another folder?

In one of my folders there are files like "IGN_A.txt", "IGN_B.txt", "IGN_C.txt"......... In another folder there are correspond...

11달 전 | 답변 수: 1 | 0

질문

How to use "dir" command to get desired files in a folder?

I can read files inside a folder by using this piece of code.. Flame_speed_folder = '/home/ali/Test_rig'; Allfiles = dir(full...

11달 전 | 답변 수: 1 | 0

질문

How to create a higher resolution data?

I am creating a series of data (delta), which i am giving input to a process to find out for which delta the process yields a mi...

12달 전 | 답변 수: 0 | 0

질문

How to vectorize 'for' loop in this code?

My code is like this... c = 0; for j = 3: 2 : size(READ,2) c = c+1; output(c) = ......

12달 전 | 답변 수: 1 | 0

질문

How to go through multiple subfolders for operation?

I only can access into one folder and process the data inside that folder. My Code is like this %Specifying file directory for...

12달 전 | 답변 수: 1 | 0

질문

How to store matrix in a txt file with Row and Column name?

Here is my Code that is storing a 12×N matrix named "MEEM_orig" MEEM_Orig_File = '/home/directory'; % Assiging dir...

12달 전 | 답변 수: 2 | 0

질문

How to store data in a nested for loop?

This is my skeleton Code: c = 0 for J = 1: 1 : 12 c = c+1; . . . ...

12달 전 | 답변 수: 1 | 0

질문

How to store multiple column vector generated from a for loop?

I have a function called func which returns A, B, C and D. This A, B, C, D each are 12 elements column vector. I am using this c...

12달 전 | 답변 수: 2 | 0

질문

How to find the x and y values of a graph which is covered by a certain range?

I have two sets of data for two curves. The first set is x_Exp = [1.1;1.083;1.08;1.073;1.015;0.993;0.987;0.978;0.974;0....

약 1년 전 | 답변 수: 1 | 0

질문

How to plot multiple data sets in the same graph for a common range?

I have two sets of data for two curves. The first set is x_Exp = [1.1;1.083;1.08;1.073;1.015;0.993;0.987;0.978;0.974;0....

약 1년 전 | 답변 수: 2 | 0

질문

How can i save a matrix in a txt file and also in .png format?

I have a 12 by 3 matrix 'A'. I want to write this matrix in a txt file with a Title as well as separate names for each column ...

약 1년 전 | 답변 수: 1 | 0

질문

How to find the value of 'x' which will minimize an enclaved function?

I am trying to use the function [x,fval]=fminsearch(fun,x_0) However the problem appears that i don't have any direct f...

약 1년 전 | 답변 수: 1 | 0

질문

How to find where a function has minimum value?

I have a function like this- <</matlabcentral/answers/uploaded_files/136477/r.png>> How can i find the value of δ for whic...

약 1년 전 | 답변 수: 1 | 0

질문

How to plot large square subplot?

<</matlabcentral/answers/uploaded_files/135976/66.txtM12.png>> How can i plot such large square subplot along with a common T...

약 1년 전 | 답변 수: 1 | 0

질문

How to calculate the area dissimilarity between two curves?

I have two smoothed curves 'f' and 'g'. f = [4.66356058704069;4.76003678995220;4.85195856216057;4.93937125386862;5.0224...

약 1년 전 | 답변 수: 1 | 0

질문

How to calculate intersection between the domains of two functions?

<</matlabcentral/answers/uploaded_files/135396/D.jpg>> I have two column vectors (f and g). From this two vector how can i ca...

약 1년 전 | 답변 수: 1 | 0

질문

How to write a .txt file in this way?

<</matlabcentral/answers/uploaded_files/134424/z.png>> I am writing a code like this if D == 0 ...

약 1년 전 | 답변 수: 2 | 0

질문

Assigning different color in legend

I am using this code, but it's plotting same color for all the graphs. How can i assign different color for all of them. There i...

약 1년 전 | 답변 수: 2 | 0