Domanda


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

circa 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 6 anni fa | 3 risposte | 0

3

risposte

Domanda


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

circa 6 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 9 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 13 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 13 anni fa | 1 risposta | 0

1

risposta