Question


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...

5 years ago | 0 answers | 0

0

answers

Question


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 ...

6 years ago | 1 answer | 0

1

answer

Question


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 ...

6 years ago | 3 answers | 0

3

answers

Question


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...

6 years ago | 1 answer | 0

1

answer

Question


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...

9 years ago | 1 answer | 0

1

answer

Question


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 years ago | 0 answers | 0

0

answers

Question


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 years ago | 3 answers | 0

3

answers

Question


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 years ago | 0 answers | 0

0

answers

Question


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 years ago | 0 answers | 0

0

answers

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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...

10 years ago | 1 answer | 0

1

answer

Question


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+...

10 years ago | 2 answers | 0

2

answers

Question


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...

10 years ago | 2 answers | 0

2

answers

Question


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...

10 years ago | 2 answers | 0

2

answers

Question


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...

10 years ago | 2 answers | 0

2

answers

Question


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-...

10 years ago | 1 answer | 0

1

answer

Question


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...

10 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 2 answers | 0

2

answers

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 0 answers | 0

0

answers

Question


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...

13 years ago | 3 answers | 0

3

answers

Question


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 years ago | 1 answer | 0

1

answer

Question


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 years ago | 1 answer | 0

1

answer