질문


I am facing problem with big fraction
Hello everyone, When i am writing the following code, "sumx" returns me value in fraction, i want to show my result in terms of...

4년 초과 전 | 답변 수: 0 | 0

0

답변

질문


When L is not unique, how can I choose any of L
let say i have a vector S=[ 7 1 15 13 2 14 6 10 12 11 4 8 3 9 5]; and after ...

5년 초과 전 | 답변 수: 1 | 0

1

답변

질문


find the longest monotonically increasing subsequence of a sequence of n numbers?
I have algorithm of the longest monotonically increasing subsequence of a sequence of n numbers Let S[1]S[2]S[3]...S[n] be the ...

5년 초과 전 | 답변 수: 3 | 0

3

답변

질문


I want to save matrix at each iteration to later use for Multiplication
I have written a code, it is working fne, but i couldnot save the result at each step. clear all; clc a=0:1; b=0:1; c=0...

5년 초과 전 | 답변 수: 1 | 0

1

답변

질문


how to call a function one m-file to another m-file
lets say i have one m-file named call1.m having: function t =call1(a,b) a=10; b=5; t=a+b; end and i want to ca...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I want to have my error bar graph like given in picture
clear all; clc; C = [0.962 0.9416 0.9606 0.9845 0.9385]; N = [0.9392 0.979 0.948 0 0]; S = [0.9599 0.9276 0.9571 0.93...

거의 9년 전 | 답변 수: 0 | 0

0

답변

질문


for loop for different set of values
Hi, i want to run for loop with different set of values as for example for i = 2:6,17:22 Y= 2*i; End Please do it ...

거의 9년 전 | 답변 수: 3 | 0

3

답변

질문


problem in solving coupled non-linear Initial Value ODE using finite difference method
Hi i wrote a code for 3 coupled non-linear Initial Value ODE ( u and w are second order and v is 1st order ODE) using finite dif...

거의 9년 전 | 답변 수: 0 | 0

0

답변

질문


Error in Exact solution and numerical Solution
Hi I am solving a 2nd order linear ODE using Forward Scheme Finite Difference Method and also computing the Exact solution and p...

거의 9년 전 | 답변 수: 0 | 0

0

답변

질문


Load MAT files and Then Save new MAT file with same Name after calculations
If I have a series of MAT files and want to load it and then perform some calculation on it and then save all the new MAT files ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


Save variable in vector form after a loop
here is y code for calculating norm between two vectors and then saving the minimum number and its index in variable r and c, i ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


how do I concatenate mat files matlab
I have hundreds of MAT files and i want to concatenate all these files to a single file,each MAT file has dimension of 69x128,he...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


Read data using xlsread and store in a variable
Hi I have an Excel file with 1000 rows and i want to pick 30 random rows from it, i used xlsread command to read the excel data ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

질문


How to convert .xlsx file to .mat larger than 200 mb
Hi, I have a file with 65536 rows and almost 1800 columns that makes my excel file to approx 210 MBs and i want to convert it in...

대략 9년 전 | 답변 수: 0 | 0

0

답변

질문


plot in different ranges for x
i want to plot a function say sin(x) for the interval 0:30 and then i want to continue this plot for some other function say ax+...

9년 초과 전 | 답변 수: 2 | 0

2

답변

질문


store values in array in nested for loop
ss=1; for i = 1:2 for j = 1:5 T = norm(r2(j,:)-r1(i,5:end)); % reading 2 excel files and r2 and r1 are ro...

9년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Make my code for taking norm efficient
here is my code that is taking norm between 2 rows from 2 different excel files,it picks one row from my_first_file.xlsx and tak...

9년 초과 전 | 답변 수: 2 | 0

2

답변

질문


write data to excel for more than 26 (A-Z) columns
I am using xlswrite and wants to write data ranging from A column to ABC column,but when i specify the range A:ABC,i got an erro...

9년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Iteratively selecting excel files
Hi,i have around 1500 excel files in a folder with almost 900 x 130 cells of data in each file and i want to read (xlsread) one-...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Chossing random data from xls files
I have hundreds of excels files in different folders with data on hundreds of records,I want to record the data to a single (exc...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Need to do ode45 for various values iteratively
Hi i am writing a code for ode45 for which i have to variate the value of "aplha",after each time the ode45 evaluates and the us...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Naming xls files corresponding to image in MATLAB
I have number of images in a folder. I have read these images, I am generating sift features and descriptors of these images and...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Read names of images from text file and read using imread
Hi, I have some images to read in MATLAB and the names of the images are stored in a text file please let me know how can I read...

거의 10년 전 | 답변 수: 2 | 0

2

답변

질문


for loop and xlswrite
Hi,i want to use xlswrite to write my data using for loop but the issue I am facing that if i have for loop with decimal interva...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


I am Facing problem using ode45
I wrote this in m-file... function dx=FtnTest(t,x) dx=zeros(2,1); dx(1)=x(2); dx(2)=-52.1480*(-63.83...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Hi,I want to find maximum value from the plot of interpolation
clear all;clc; rng(4); x = [0.000000 2.038941 3.965975 5.988320 7.989983 10.024795 12.001537 14.023893 16.008968 18.002214 ...

거의 10년 전 | 답변 수: 0 | 0

0

답변

질문


plotting lines
i have a simple ques that if i have z-plane having x and y axes,and i express z=x+i*y,and x if fixed let say 5 any y=0:10 then h...

12년 초과 전 | 답변 수: 3 | 0

3

답변

질문


what can i further do in my this code of linear shooting
function[]=LS(x,y) clc % Dy is the representation of y' %D2y is the representation od y'' D2y=inline('-(2/x)*Dy + (2/x^2)*y ...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


How can i variate the index for the matrix input by the user in command window
Code: syms('a','b','A','n') fprintf('Enter the value of n:') n=input(' '); for a=1:n; for b=1:n; A(a,b)=input(...

대략 13년 전 | 답변 수: 1 | 0

1

답변