A résolu


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

plus de 6 ans il y a

Réponse apportée
How to add plot in the outside with 2 for loop ?
When you are plotting inside the for loop, I'd bet you are plotting collections of 7 data points each time around the loop (i.e....

plus de 6 ans il y a | 0

Réponse apportée
Merging two irregular curves ??
When you say merge, I'm assuming you simply want to add together the value of the two curves at each point along them. If so the...

plus de 6 ans il y a | 0

| A accepté

A résolu


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

plus de 6 ans il y a

A résolu


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

plus de 6 ans il y a

A résolu


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

plus de 6 ans il y a

Réponse apportée
Values over 1000 use e
For the first part of your question, you can use: format longG which will allow you to see the maximum possible number of digi...

plus de 6 ans il y a | 0

Réponse apportée
Plotting of velocity data points in x-y graph
Have you tried a quiver plot? See the below page for more information: https://uk.mathworks.com/help/matlab/ref/quiver.html

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Printing matrix to display error message, why?
I just copied and pasted your code exactly as it appears above and it runs absolutely fine for me. Can you provide any more det...

plus de 6 ans il y a | 0

Réponse apportée
How can i make plot with different length vector?
My guess here is that your two arrays (A and A1) represent your Y data. In that case you could simply create two different sized...

plus de 6 ans il y a | 0

Réponse apportée
Plotting graph using roots
The roots you have calculated are the x values where y = 0. Therefore to plot these on a graph you can use: p = [1 5.5 3.5 -10]...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Array indices must be positive integers or logical values.
I just ran this segment of code and I get the same "Array indices must be positive integers or logical values." error but for th...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
BAR graph not working
Is that the exact piece of code you used? On my computer (and Matlab version R2018a) that runs absolutely fine.

plus de 6 ans il y a | 0

Réponse apportée
iterate through elements of matrix
Chuguang Pan answer is correct but is in the comments section rather than the answers section. This won't be able to be accepted...

plus de 6 ans il y a | 0

Réponse apportée
Trying to change colours on the the same plot, but getting error message 'There is no b property on the Line class'
The issue with your plotting command is that matlab is interpreting the 'b',1 part as a pair of commands (i.e. ste the property ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Elementwise Matrix multiplication with a Vector to get a higher dimension Matrix
I think this should do the trick. A1 = [1 2 3; 4 5 6; 7 8 9]; Asize = size(A1); V1 = (1:1:3); lengthV1 = length(V1); A2 = z...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
200 pixel to mm
There will definitely be a correlation between number of pixels and size/area, however I don't think you can use it for quantita...

plus de 6 ans il y a | 0

Réponse apportée
Finding a trendline from a scatter plot
MATLAB can do this if you make your scatter plot and then in the figure window go to "Tools -> Basic Fitting". That will then al...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Problems using parfor due to way variable is used
I think the answer to the below question might be of use to you here. https://uk.mathworks.com/matlabcentral/answers/404809-how...

plus de 6 ans il y a | 0

Question


Adjust z-axis location for a pcolor() plot
I am attempting to vertically stack a number of pcolor plots within the same set of axes and then overlay some contour lines ont...

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

1

réponse

Réponse apportée
add to a vector by plus 1 and plus 2
I think this should do what you are after X = [1;2;3]; for i=1:3 X(i) = X(i)+i; end Another way would be to do: X = [1;2;3...

plus de 6 ans il y a | 0

Réponse apportée
load .mat files into a loop
You could store the filenames for your arrays into an array (possibly cell array might be better if they aren't all the same num...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to plot a matrix with reoccurring values?
Take for example a matrix: vals = [1 1;2 1;2 2; 1 2; 1 3; 2 3; 2 4; 1 4]; which is of the form you describe above. Then do: p...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Problem finding the index?
The problem is the precision which which your machine is able to store numbers. You are asking MATLAb to find an exact match to ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Finding index (x value) of noisy data crossing a threshold value
idx = find(SmoothedData > Threshold); Width = Xdata(max(idx)) - Xdata(min(idx)); Here the first line finds all indices of poin...

plus de 6 ans il y a | 0

Réponse apportée
How to change Marker Color in line graph?
Can you try the below and let us know what happens please? I don't have the necessary toolboxes to check it myself. load('MCA_D...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How Change Matrix Shape / Setting
Not necessarily a pretty solution but the below will do what you want for the given table. Should give you enough of an idea of ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to rewrite the maximum element of an array by an avarage
So, if I have interpreted your question correctly then you have an array (say A) and you wish to find the maximum valued element...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Concatenate 8X4 matrix in 16X2 matrix in matlab
This should do it: B = [A(:,1:2); A(:,3:4)]

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
HELP NEEDED_ODE45MATLAB
Your problem here is that you haven't passed your parameters into the function. The line: function dY=ODEfun(t,Y,a,b,c,E,h1,N,D...

plus de 6 ans il y a | 0

Charger plus