Community Profile

photo

Rinu


Last seen: oltre 2 anni fa Attivo dal 2013

Statistiche

  • Thankful Level 3

Visualizza badge

Content Feed

Visto da

Domanda


How to sort one field of a structure based on the values of another field?
Let's say I have a structure 'struct' with two fields 'field1' and 'field2'. The length of the fields is unknown, but could be m...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How to read data from text file upto some point defined by "1"?
I'm trying to read data from a number of text files (using a loop) using fscanf upto some point in the file where "1" occurs. I ...

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


How to retain only the positive root of a quadratic equation?
I was wondering if there is any Matlab function that would allow me to retain only the positive root of a quadratic equation. I ...

oltre 9 anni fa | 2 risposte | 0

2

risposte

Domanda


Find elements in a matrix
I have a very large matrix A with 4 columns and hundreds of thousands of rows - the first 3 columns contain x, y and z coordinat...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to generate a contour map?
Is there any way to generate a contour map from random 2-D scattered data points without a grid? I just have the X and Y coordin...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to read in names of function input arguments as strings?
Is there any way I can read in the names of input arguments of function m-files as strings? I have a function m-file: function ...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to export a Matlab cell array to an Excel spreadsheet?
I have a cell array X={'A','B','C','D',A,B,C,D} where A,B,C and D are column vectors of equal size. I intended to create a spre...

oltre 10 anni fa | 3 risposte | 1

3

risposte

Domanda


How to display matlab cell array contents with colors?
Say, I have a cell array A containing strings describing some property spatially. Is there any way I can plot these property val...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


Solving equation with symbolic vector variable
I want to solve an equation of the form: V/(A-V)=B where A and B are known vectors and V is the symbolic vector variable I want...

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


How to group scatter plot data?
I have three vectors x,y and z of the same length. How can I generate a scatter plot of x and y which is grouped according to th...

oltre 10 anni fa | 0 risposte | 0

0

risposte

Domanda


How do I fit an exponential curve to my data?
Say, I have the following data: x=[1,2,4,6,8],y=[100,140,160,170,175]. How do I fit an exponential curve of the form y=a-b*exp(-...

oltre 10 anni fa | 3 risposte | 1

3

risposte

Domanda


How to plot a grid connecting adjacent points in a 2-D Cartesian coordinate system?
Say, I have a grid [X Y]=meshgrid(0:10:100,0:10:100). Is there any Matlab function to plot the 2-D grid (100 small boxes)? Also ...

oltre 10 anni fa | 0 risposte | 0

0

risposte

Domanda


How do I create a vector of the average of consecutive elements of another vector (without using a loop)?
Say, I have a vector A=[2 4 6 8 10]. Is there any way I can create a vector of the average of consecutive elements of A, i.e. B=...

oltre 10 anni fa | 3 risposte | 0

3

risposte

Domanda


How do I create (and retain) the elements of vectors using for loop?
I want a function file to output two vectors 'pi_estimate' and 'error' of length 'n' each. I'm initializing the vectors with zer...

oltre 10 anni fa | 1 risposta | 0

1

risposta