Réponse apportée
Quiver plot - how to use in this case?
Try the following: quiver(lat(1:5:end, 1:10:end),lon(1:5:end, 1:10:end),u(1:5:end, 1:10:end),v(1:5:end, 1:10:end));

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Line plot for irregular timeseries data
a = readtable("book.xlsx"); idx = find(diff(a.date) > 1.2/24); % find the location of large time gap a.Nnuc(idx+1) = nan; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
mean first 10 lines and next 10 line till finish array
a = rand(210338, 3); nrows = size(a, 1) n = 10; nseg = floor(nrows/n) c = squeeze(mean(reshape(a(1:n*nseg,:), n, nseg, 3)));...

plus de 4 ans il y a | 1

Réponse apportée
I am getting an error
f=@(x) exp(x)-x.^2+5*x; x=1:0.1:10; y=f(x); d=gradient(y, x); plot(x,d,'o')

plus de 4 ans il y a | 0

Réponse apportée
I have a problem with indexing in nested for loop.
for columns=1:size(femur_6d, 2) % number of columns for rows=1:size(femur_6d, 1) % number of rows

plus de 4 ans il y a | 1

Réponse apportée
Smaller values not seen in bar graph
X=[5 4 3]; Y=[1 7 8]; bar([X; Y]') figure bar(X) hold on bar(Y, 'FaceAlpha', .5); % transparency figure XMin = min(X, ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to Split fisher iris data into 60% training and 40% Testing
load fisheriris n = size(meas, 1); %hpartition = cvpartition(n, 'holdout', 0.4); % 40% for test hpartition = cvpartition(spe...

plus de 4 ans il y a | 0

Réponse apportée
Output regression tree as text
view(TreeDomain) will not return result to a variable. You can use "diary" function to save the result to a file: diaray tree_...

plus de 4 ans il y a | 1

Réponse apportée
csv data to fft in matlab
x = readmatrix("1_20mhz.csv"); n = size(x, 1); fs = 1/diff(x(1:2)) % sampling frequency y = fft(x(:,2)); f = (0:n-1)...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
"Check for incorrect argument data type or missing argument in call to function 'X'. Error in sum=sum+A(j,h)*X(h)
output= ('Gaussian Elimination Method') % A=input ('Enter your coefficient Matrix') % b=input ('Enter your space vector') A =...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Using MATLAB solve this
% For matrix A; (Try it out yourself with matric B) A=[1/2 1/3; 1/4 1/5]; Ak = A; for k=2:20 Ak = Ak*A end

plus de 4 ans il y a | 0

Réponse apportée
Using MATLAB command can anyone solve this questio
% Some random input A = rand(2, 2) b = rand(2,1) % Solution x = (A*A)\b % To veryfy that: A*A*x = b A*A*x

plus de 4 ans il y a | 0

Réponse apportée
Integration of a function
Check below documentation: https://www.mathworks.com/help/symbolic/sym.int.html

plus de 4 ans il y a | 0

Réponse apportée
Fading colors in contourf
%Processing input Data = importdata('NH3.txt').data; Speed = importdata('Speed.txt').data; yy = unique(Data(:,2),'sorted'); ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do I create a 2D lookup table from efficiency map?
% Combine all the points for red and green curves to form the three vectors % speed, torque, efficiency. Then use the scattere...

plus de 4 ans il y a | 1

Réponse apportée
Plot time-series data of various column
% Read in data %k = xlsread('ACTUAL DATA_WIND SPEED.csv'); k = readmatrix('plot_try1.csv'); k(1, :) = []; % remove the heade...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Function won't display output in command window
You have to save the function as "funfactorial.m" first (not Untitled.m).

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
matrix error, long answer
Becasue the range of data is too big, the displayed result using the default format may make the smaller value to be 0. Run the...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
I cannot figure out how to get my data to plot on a simple line graph.
data = readmatrix('Copy of Pop Up.csv'); x = data(:, 1); y = data(:, 3); plot(x, y); % plot('Year','Num_corals') ...

plus de 4 ans il y a | 0

Réponse apportée
Can my x-axis have varying scales for certain ranges of values?
Yes. You can change the tick locations: t = 1:200; x = sinc(2*pi*.125*t); plot(t, x); set(gca, 'XTick', [0:20:60 70:10:100 ...

plus de 4 ans il y a | 0

Réponse apportée
Why won't my plot line show in plot?
W_dot_net = 3; % a constant n_c = linspace(0.6,0.8,10); % The following can be vectorized and simplified. But the loop f...

plus de 4 ans il y a | 0

Réponse apportée
how do I make script that plots values from workspace dividing into the case
x = randn(101, 1); y = randn(101, 1); idx = x.*y > 0; % same signs plot(x(~idx), y(~idx), 'ro'); grid on

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Double Integration error using /
Keep in mind that the function should be defined for vector arguments x and y. Therefore some * and / should be changed to .* a...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Can one install two matlab versions in one machine?
Yes. As long as you have space, you can install new version along with old versions.

plus de 4 ans il y a | 0

Réponse apportée
Plotting combined and separated graphs for nested for loops
for n = 2:10 figure; hold on for j = 1:10 plot(x,y(:,n,j)); end hold off end

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Generate repeatable random integers within a fixed range
a = randi([4 11], 4, 1)

plus de 4 ans il y a | 0

Réponse apportée
finding the values of X for a given Y in an equation
syms x y solve(x^4+x^2 == 3)

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to create a nested cell file?
DATA(5).A.B.C=rand(12,31); DATA(1) DATA(5)

plus de 4 ans il y a | 0

Réponse apportée
Make a logical array into a single logical column, if any of the array rows contain a 1
a = [0 0 0; 1 0 0; 0 1 0; 0 0 0] b = any(a==1, 2)

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to find a y value for a given x in a plot?
x1 = 25; y1 = interp1(t1, p1, x1);

plus de 4 ans il y a | 0

| A accepté

Charger plus