photo

pfb


Actif depuis 2011

Followers: 0   Following: 0

Message

Statistiques

MATLAB Answers

9 Questions
93 Réponses

RANG
400
of 297 503

RÉPUTATION
202

CONTRIBUTIONS
9 Questions
93 Réponses

ACCEPTATION DE VOS RÉPONSES
33.33%

VOTES REÇUS
24

RANG
 of 20 449

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 159 017

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • First Review
  • Thankful Level 1
  • Knowledgeable Level 4
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
How can i draw the graph?
vectors x and y contain your data plot(x,y,'k.'); If you only have the ydata, just type plot(y,'k.'); This holds t...

presque 10 ans il y a | 0

Réponse apportée
Taking derivative an array which is a numerical value with respect to another array
if f is the vector representing f(x) and x contains the corresponding abscissae df = diff(f)./diff(x) note that this has ...

presque 10 ans il y a | 0

Réponse apportée
Count the number of sequential fractional *nines* of a decimal number
You could turn your numbers into strings, like e.g. in st = sprintf('%1.10f',A(1)) maybe strip the trailing "0." (if they...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
rearranging matrices horizontally rather than vertically
This is because the index order in a matrix is along columns. I'm not sure your command does what you say. Anyway b= [4 1 ...

presque 10 ans il y a | 2

| A accepté

Réponse apportée
Returning all Eigen Vectors including non-unique ones
Not sure what you mean... eig does return all of the eigenvectors and eigenvalues. Do you mean that you need to know the dege...

presque 10 ans il y a | 0

Réponse apportée
How to plot point x on a line
Not sure what you are asking, nor what your function is expected to do. I guess x1,x2,y1,y2 are scalars (otherwise you're lik...

presque 10 ans il y a | 0

Réponse apportée
I'm having trouble suppressing duplicate numbers. Can someone please help me to fix this within my while loop?
M=zeros(1,5); for i = 1:5 done=0; while ~done V=input('Enter a number between and incl...

presque 10 ans il y a | 1

Réponse apportée
basic monte carlo question: area of circle
You are mixing things up. Your code is part vectorized, part scalar. You have a loop over N, but then at each iteration you g...

presque 10 ans il y a | 3

| A accepté

Réponse apportée
How to saving data to file in different path in matlab?
You are using "-append". That means that 'hafizah.dat' should already exist. Does it exist? According to matlab it does no...

presque 10 ans il y a | 0

Réponse apportée
How to create a patch object without actually plotting it.
h=patch(X,Y,Z,'r','visible','off'); and then, when you need it set(h,'visible','on');

presque 10 ans il y a | 1

| A accepté

Réponse apportée
How can I use for loop for assigning variable names?
what's wrong with using matrices? Something like acc = data(:,2:6); pot = data(:,8:16); acc0 = detrend(acc); and s...

presque 10 ans il y a | 0

Réponse apportée
Why does my surface have a 'jagged' look when I do this?
Hi Of course, making the grid thicker reduces the jaggedness. As far as you are plotting planes, you can easily obtain n...

presque 10 ans il y a | 0

Réponse apportée
Creating random order of trials (numbers in a matrix) with restrictions
So you need a 5x50 matrix of numbers between 1 and 10, such that: - all the numbers in the first column are different - no n...

presque 10 ans il y a | 0

Réponse apportée
Simple Question: How to graph certain surfaces depending on the Z value?
You could set the points that do not meet your constraint to NaN; i = Z1<5; Z1(i)=NaN; i = Z2>5; Z2(i)=NaN; The r...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Summation of an infinate series
That can be done in 3 lines of code tops. However, giving you the solution for your assignment straight away does not seem fair...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Replace some values of a vector with another vector which has a different size
b=zeros(size(source)); b(find(source))=a; of course this works only if the number of nonzero elements in source are the sa...

presque 10 ans il y a | 1

Réponse apportée
How to implement sum of sines using matricies
You could try Y = a*sin(f'*t); where a and f are the row vectors for the amplitude and frequency of your sines, an...

presque 10 ans il y a | 0

Réponse apportée
Save plot is not the same as plot on screen
Hi, this happens to me too. I found that I need to specify everything explicitly (XTick, YTick, Xlim, Ylim for the axes, ...

presque 10 ans il y a | 0

Réponse apportée
change x axis, i have a plot of data from a headset. then i have 5 lines from a game, so i want 0-time from start(green) line till the end(red line), is it possible?
Not sure what your asking for. Do you need to re-define the limits of your x-axis so that they go from the green to the red ...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
randperm in while loop
If I get it right, you want a vector A that is "divided" into bunches of 3 consecutive elements. Each of these "bunches" should...

presque 10 ans il y a | 1

Réponse apportée
i want to determine common sub sequence on array
You can use the builtin function "intersect" i = intersect(a,b); i = intersect(i,c); [...] i = intersect(i,h) The l...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
Problem with Patch, trying to fill a surface based on points.
Not sure you can do that with the patch command "as it is". You have to create some sort of mesh. Something nicer is obtai...

presque 10 ans il y a | 0

Réponse apportée
Help with output values.
If I get it right your function MatOb just prints x_values in the standard output. I fail to see the need of introducing one fu...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
error in embedded matlab function
Matlab is complaining because it cannot find fnct1. This is the typical answer you get when you use a function that does not ex...

presque 10 ans il y a | 0

Réponse apportée
logical indexing between two varaibles
I'm not sure I understand your problem. It looks like some sort of binning problem. You could try using "histc" on the column...

presque 10 ans il y a | 0

Réponse apportée
Make unequally spaced data, equally spaced
Perhaps this is obvious, but datenum(date,'yyyymmddhhMM'); where "date" is a char variable containing your timestamp, con...

presque 10 ans il y a | 0

Réponse apportée
Error message while using Fullfile to write .m file in a specific folder
I think it might have to do with this: in your code you define the name of the file in a char *variable* fileID=['tilt',num2...

presque 10 ans il y a | 0

Réponse apportée
How to have different styles of mesh for matlab surfaces?
uhm, mesh style should be easy, provided you do not use the same color for the faces and the mesh. I'm using black here. se...

presque 10 ans il y a | 0

Réponse apportée
I don't understand what this u(:,1) does to matrix or vector?
It gives you the first column of the array u. If u is a row vector, that is the 1st element. if u is a column vector, that...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
how to find the same elements from 2 vectors
% this is going to find the common elements (1 and 5) I=intersect(vector_1,vector_2); % this is going to introduce the th...

presque 10 ans il y a | 0

| A accepté

Charger plus