0
plot doesn't work

x = [0:0.01:2*%pi];

plot(x);

gives :

Indice invalide.

--> plot(t)
à la ligne 39 de la fonction modulo ( C:\Program Files\scilab-6.0.2\modules\elementary_functions\macros\modulo.sci ligne 54 )
à la ligne 80 de la fonction plot ( C:\PROGRA~1\SCILAB~1.2\modules\graphics\macros\plot.sci ligne 93 )

Can anyone be so kind to tell me why scilab crashes here ?

thks in advance


Scilab 30-09-19, 1:42 p.m. toto1
0

What i am wanting to do is simple but I just can't get it to work. Basically I am reading values from a ToF (time of flight (basically distance measuring)) sensor on the arduino and I want to use these values in code I already have in matlab.

I have two solutions, either create the code for reading the sensor in matlab (I have looked everywhere online an cant find a matlab version, however, could find python and arduino code). The issue with this is I genuinely have no idea how to do this so it would be very difficult to do so.

The other solution is to try to read the values from the arduino software in matlab and then use these figures to do what I want. This is the solution I have attempted however, the code which I have been using seems to not display the expected values.

I need values from the serial monitor in arduino to be read and then displayed as an input in matlab. I was wondering if anyone had needed to do this before and maybe had code for this.

Oops! Looks like spam! Waiting for moderator approval.
01-10-19, 11:50 a.m. MarcusJubin

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


0

this forum doesn't seem to work either.

laughno

1 answer is notified and nothing coming

Oops! Looks like spam! Waiting for moderator approval.
01-10-19, 12:05 p.m. toto1

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


0


Finest blog!I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well.
I wanted to thank you for this websites! Thanks for sharing. Great websites!

happy chick

Oops! Looks like spam! Waiting for moderator approval.
16-10-19, 2:25 a.m. sunny0106

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


0

We are not getting the same error. The plot works correctly. Here are some possibilities for you:

1. Mismatch in variables: Though the program shows plot(x), the error message reads plot(t). Please check if the same variable is being used at both places.

2. Check the value of x. See if it is a big array of 629 entries. You could also run:

--> size(x)
ans =

1. 629.


Hope that helps.

10-12-19, 3:50 p.m. sunilshetye


Log-in to answer to this question.