Réponse apportée
Error: Data must be numeric, datetime, duration, categorical, or an array convertible to double.
tic close all; clc; % Declaring Theta and Phi Variables theta = 0:0.1:pi/2; % Phi Values phi_E_Plane = 0; phi_H_Plane ...

environ un mois il y a | 0

| A accepté

Réponse apportée
When plotting multiple subplots in the for loop, how do you stop the axes from overlapping?
axes(t) where t is a tiledlayout, creates a new axes in t, so your code is creating a new axes on each iteration of the loop. Th...

environ un mois il y a | 0

Réponse apportée
How to create a summation looping through one matrix while keeping another one constant?
[nr,nca] = size(A); ncb = size(B,2); C = zeros(nr,nca); for r = 1:nr for ca = 1:nca for cb = 1:ncb ...

environ un mois il y a | 0

Réponse apportée
how convert arraycell to use with writecell
AA = load('matlab_writeCell.mat').bubu % write the cell array to file using space as the delimiter: writecell(AA,'myTextFile.t...

environ un mois il y a | 0

| A accepté

Réponse apportée
Trying to make a 2 value sz vector, get Error using tabular/horzcat All input arguments must be tables.
T = table([1;2;3;4],{'ok';'let''s';'see';'here'}) Given the table T above, T(1,:) is another table containing the first row of ...

environ un mois il y a | 0

| A accepté

Réponse apportée
Find Selected button in Button Group CallBack
function ManualRewardsButtonGroupSelectionChanged(app, event) selectedButton = app.ManualRewardsButtonGroup.SelectedObject;...

environ un mois il y a | 0

| A accepté

Réponse apportée
Code checking error in App Designer, it thinks xxxx.BackgroundColor is a scalar
To avoid the warning, use: if isequal(app.STOPTRIALSButton.BackgroundColor,[0.95 0.33 0.10]) app.STOPTRIALSButton.Backgrou...

environ un mois il y a | 0

Réponse apportée
Unrecognized function or variable 'efficiency'
You might get that error if the arguments you give to efficiency() are not correct. For example, calling it like this works: a...

environ un mois il y a | 1

| A accepté

Réponse apportée
How to convert a table containing numbers and booleans to a double array?
T = load('example.mat').data3 M = [strcmpi(T.var1,'TRUE') T.var2]

environ un mois il y a | 0

| A accepté

Réponse apportée
Error when using resample and smooth surfaces in CAT12
Here are lines 232-242 of cat_surf_info.m: [~,ff2] = spm_fileparts(SPM.xY.VY(1).fname); % find mesh string hemi_i...

environ un mois il y a | 0

Réponse apportée
How to edit the red "+" marks on the Nyquist plot
H = tf([2 5 1],[1 2 3]); nyquist(H) h = findall(gcf(),'Type','line') mkr = get(h,'Marker') h = h(strcmp(mkr,'+')); h.Li...

environ un mois il y a | 1

| A accepté

Réponse apportée
Retrieving Arrays Within Set of Matrices
x = M{1,4}(:,1); C = cellfun(@(m)m(:,2),M(:,4),'UniformOutput',false); y = [C{:}]; plot(x,y)

environ un mois il y a | 0

Réponse apportée
How can I change the axis intervals using powers?
Use semilogx instead of plot. <https://www.mathworks.com/help/matlab/ref/semilogx.html>

environ un mois il y a | 0

| A accepté

Réponse apportée
Multiple plots within 1 figure
Try replacing numel(num_days) with num_days, i.e.: figure % make new figure tiledlayout(num_days, 1, 'TileSpacing','comp...

environ un mois il y a | 0

| A accepté

Réponse apportée
Outerjoin isn't matching the same values in two different tables
As for why outerjoin() doesn't appear to combine data when the datetimes are the same, the fact is that some datetimes that appe...

environ un mois il y a | 1

| A accepté

Réponse apportée
Index exceeds array bounds despite a loop to prevent this?
The problem is that some element of end_idx is greater than 6000 but the corresponding element of start_idx is not greater than ...

environ un mois il y a | 1

| A accepté

Réponse apportée
How to display results in the form of graphics in MATLAB GUI? [Bagaimana Cara menampilkan hasil dalam berupa grafik di gui matlab?]
m is a vector, and II is a scalar. When you plot a scalar vs a vector, MATLAB creates one line object for each element in the ve...

environ un mois il y a | 0

| A accepté

Réponse apportée
How do I preallocate memory
One way is to do this before the outer loop: clear OutData OutData(length(hucPoly)) = struct();

environ un mois il y a | 0

| A accepté

Réponse apportée
Error : The first argument of the 'verify' operator must be a scalar logical expression.
verify(isequal(TGS_Zero_Pos_EE_NVM,single([1.5; 1.5; 1.5; 1.5])))

environ un mois il y a | 0

Réponse apportée
StackedPlot with separate events
Maybe something like this is good enough: %make timetable times=[1, 2, 5]'; s=seconds(times); variable=[3, 4, 5]'; T=table(...

environ un mois il y a | 0

Réponse apportée
How to make directions bigger in current plot?
h = loopCircular; % first, a plot with the original size arrows, for comparison current(h,70e6,'Direction','on'); % next, a...

environ un mois il y a | 1

Réponse apportée
Assigning correct symbols and colors to group scatterplot

environ un mois il y a | 0

| A accepté

Réponse apportée
Use file name to save .mat files
[FileName,PathName] = uigetfile('*.dat','Select the .dat-file(s)','MultiSelect','on'); if isnumeric(FileName) return en...

environ un mois il y a | 0

| A accepté

Réponse apportée
Extracting neighbouring cells in a cell array
B = [1,2,2,1,1; 2,1,2,1,2]; V = 1:size(B,2); A = accumarray(B.',V(:),[],@(m){m.'}) C=[1 2; 1 2] % construct NbhInd (a ce...

environ un mois il y a | 0

| A accepté

Réponse apportée
Is there a way to rename a file to one that contains certain strings?
Altitude = 2000; Mach = 0.7; old_file_name = 'output.txt'; new_file_name = sprintf('Output%gft%gm.txt',Altitude,Mach); m...

environ un mois il y a | 1

| A accepté

Réponse apportée
How to assign pair of values to a single aeeay in the matrix using two different vectors
fsine=50e6:0.4e9:3e9; Vp=0:0.5:3; result = repmat(Vp(:),1,numel(fsine))

environ un mois il y a | 0

Réponse apportée
%Parameters fs = 16e3; t = 0:(1/fs):0.03; t = t(:); % ensure column vector numFilts = 32; filter_number = 10; range = ...

environ un mois il y a | 2

| A accepté

Réponse apportée
i would like to know why my code doesn't work please, the data load factors is supposed to be taken from a .txt file from DASL website
There are a few problems that I see: 1. In MATLAB, return doesn't take arguments, so you don't say return (mean, median; stdde...

environ un mois il y a | 0

| A accepté

Réponse apportée
Some problems using map/container with if-else statement in nested for loops
Intensitysol1 is not defined because the condition "if size(a)==2" is never true. size() returns a vector, and comparing a vecto...

environ un mois il y a | 0

| A accepté

Réponse apportée
Logic statement error checking an array within a cell within a table
settingsSet.podList = load('podList.mat').T; settingsSet.podList Nrows = size(settingsSet.podList,1); VarNamesContainsPressur...

environ un mois il y a | 0