Réponse apportée
How to convert radians to degrees?
Degrees = 180 * radians / pi. Rearrange as needed ;)

plus de 13 ans il y a | 0

Réponse apportée
subplot axes shrink with colorbar
a(1) = subplot(2,2,1); pos1 = get(a,'Position'); a(2) = subplot(2,2,2); pos2 = get(a,'Position'); add colourbar et...

plus de 13 ans il y a | 1

Réponse apportée
removing irrelevant datasets from variable
IgnoredValue = NaN; % (or 0, or inf, or some known bad value) modsensorData = newsensorData; modsensorData(modsensorData...

plus de 13 ans il y a | 0

Réponse apportée
merge two matrices together
You ought to be able to mod this to give you exactly what you want - I've made some assumptions that are probably not true. f...

plus de 13 ans il y a | 0

Réponse apportée
How to return a mean value with NaN values in the matrix?
We need more of the code. But you could try: JumpHeightImpulse(JumpHeightImpulse > 1) = NaN; JumpHeightImpulse(JumpHeightImp...

plus de 13 ans il y a | 0

Réponse apportée
getting "Index exceeds matrix dimensions." Can anyone explain?
If you know the indices of where the data is, you can instead do: Indices = [ 11 12 13 15 16 17 19 20 21 32 33 34 36 37 38 ...

plus de 13 ans il y a | 0

Réponse apportée
import file by specifying its location - without GUI
Yes. You can use low level functions to read text files of any format, provided you tell matlab exactly what to do to read the d...

plus de 13 ans il y a | 0

Réponse apportée
xlswrite in for loop
Define the top-left corner of where you want to write data and ensure it is a string. xlswrite('filename.xls',L(1,:),'sheet ...

plus de 13 ans il y a | 1

Réponse apportée
how to obtain vertical and horizontal histogram of an image?
plot(mean(image)) plot(mean(image,2)) I think its what you're asking for, but its not really a histogram though.

plus de 13 ans il y a | 0

Réponse apportée
How can I output specific point of data to a sparse matrix.
The simple answer: for k = 1:numel(i) a(i(k),j(k)) = -1; end 1-D or logical indexing is probably better suited.

plus de 13 ans il y a | 0

Réponse apportée
How can I create a sparse matrix containing (3,3) block matrices on the main diagonal and on diagonals below and above the main diagonal without using loops?
You can initialise a sparse matrix as: matrix = sparse(zeros(3*m,3*m)); If you then use it as: matrix(1:3,1:3) = [a b c...

plus de 13 ans il y a | 0

Réponse apportée
How to calculate the cumulative value by consequetive hours
Where n is how many data points you want to do it for: cumulative = cumsum(Data); subtract = cumsum([zeros(1,n) Data(1:(...

plus de 13 ans il y a | 0

Réponse apportée
How to draw a line using drawnow command?
You should change your plot command to: plot(x,y,'.-') If you want it to centre start at (0,0), you can instead have: p...

plus de 13 ans il y a | 0

Réponse apportée
Calculation error for floor function floor(1.4/0.025)
1.4/0.025 actually evaluates to 55.9999999999999928946. The error is in the FIFTEENTH decimal place, which is an extremely s...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How can I create a Line Point Chart in Matlab, with data source from Excel
You can use the xlsread function to read data from an excel spreadsheet. It will read the spreadsheet into variables, and wi...

plus de 13 ans il y a | 0

Réponse apportée
"plus/minus" sign operator
It depends what you want to do with it. M = [1 1 1; 1 1 -1; 1 -1 1; 1 -1 -1; -1 1 1; -1 1 -1; -1 -1 1; -1 -1 -1]; Out = (...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Group numbers from excel column based on character
Theres a couple methods: Threshold your column to create a logical array. (arr = col > 0 ) Create a label array (eg. label =...

plus de 13 ans il y a | 0

Question


Reading very large, sparse, mixed format CSV
I need to be able to read csv files which: contain rectangular arrays of values; contain more than 65536 rows; vary in form...

plus de 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Report generation toolbox gives warnings and no figures in R2011b
I've been struggling with this problem for a few hours now. I cannot explain why it works, but I have found that if I copy t...

plus de 13 ans il y a | 0

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 14 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 14 ans il y a

A résolu


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

plus de 14 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 14 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 14 ans il y a

A résolu


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

plus de 14 ans il y a