Questions tagged as 'matlab'

2
answers

MATLAB - Data is lost when closing the FOR loop

I'm having trouble with a loopback that counts the white pixels of a piece of an image and stores the position x and y of the piece and the total of white pixels. When I print the values inside the loop it works, but immediately after the loop t...
asked by 27.06.2017 / 18:10
0
answers

Distributing points evenly in a circle

I started to make a code to randomly distribute points evenly in a circle, however, when generating a point located with a random theta angle between 0 and 2π and with a distance from the center of the random circle of 0 to the radius R, the poi...
asked by 07.10.2017 / 04:51
1
answer

Translation from Matlab to R with system (sprintf ())

I'm trying to translate the following matlab code into the R: clear all nsta = [1,2,3]; npx = [2,3,4,5]; npu = [2,3,4,5]; nmax = 2500; nome = 'MODEL1b'; system(sprintf('del %s.log',nome)); nfiles = 0; for k = 1:length(nsta) for i = 1:len...
asked by 21.05.2017 / 18:05
1
answer

How to make a curve average?

I'm taking a temperature curve with an LM35 but I can not get a mean of the temperature curve to perform my calculations. Here is an image of my curve:     
asked by 18.11.2016 / 18:40
0
answers

How do I run fortran from matlab?

I need to run a fortran file from matlab. What is the best compiler when I use windows What are the steps to create an executable file. Thanks for the help,     
asked by 04.06.2016 / 14:37
2
answers

How do you predict future values of a time series? [duplicate]

I have values from a time series with a sampling every 5 minutes. How can I predict future values using only this information? How can I model something over a period of time and use it to predict in the future (am I trying to predict the valu...
asked by 14.04.2015 / 10:55
2
answers

how to terminate program in windows from matlab?

Is there any way to terminate a program in windows from a command in matlab? Possibly resorting to a batch ... but I do not know the commands to manage programs in windows nor how to run it from matlab. I can have multiple instances of the sa...
asked by 09.05.2014 / 02:56
2
answers

How to read the size of a mat file?

I have a mat file with certain data. It has 10 rows per 500 columns but when I do: matriz = load('Planilha.mat'); disp(size(matriz)); The result is 1 by 20. What's totally different than expected. How do I get the correct size of a .m...
asked by 20.06.2018 / 20:02
1
answer

How to create color palette in MATLAB?

How do I make a color palette in MATLAB? I just want the palette, as in the image, not graphics or things like that ....     
asked by 24.02.2015 / 20:21
1
answer

Generate animation from graph

I am generating a chart with the following command: X = linspace(0, 1, n); Y = linspace(0, 1, n); surf(X,Y,B(:,:)); But how to make it generate an animation of the chart? I do not know anything about MATLAB ...     
asked by 26.06.2014 / 23:32