Réponse apportée
How to get a specific field from a structure stored in .mat file?
Here's a similar question. If this what you want? <https://de.mathworks.com/matlabcentral/answers/98870-is-it-possible-to-use...

environ 9 ans il y a | 1

Réponse apportée
Line vector + row vector = array works in r2017a but not in r2016a
For older versions use <https://de.mathworks.com/help/matlab/ref/bsxfun.html bsxfun> instead C = bsxfun(@plus,A,B)

environ 9 ans il y a | 1

| A accepté

Réponse apportée
Matrix basic operation error
For the "edited" question, A =[1 1 1 2 2 2 3 3 3] m =[2 4 6] c = bsxfu...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How to substitute numbers in a string with repeated strings?
something like this? str={'A + 2 B -> D + 3 E'}; old = {'2', '3'}; new = {'B +','E +'}; for i=1:numel(old) ...

environ 9 ans il y a | 2

Réponse apportée
Matrix basic operation error
If you enter your code on your command window, >> a = [1 2 3 4] b = [5; 6; 7] you would see a = ...

environ 9 ans il y a | 0

Réponse apportée
Convert Matlab code to Simulink Model
You need to write it into a <https://de.mathworks.com/help/matlab/ref/function.html function> and then use it inside the <https:...

environ 9 ans il y a | 0

Réponse apportée
problem in calculating mean from the required element of matrix??
k = 1; while k <j-20 if mat6(k)>0.5 mea = mean(mat6(1,k:k+19)) k=k+20; else ...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How to plot a bar graph of multiple array of data (stacked) and grouped it?
One cheap trick I can think of is to add rows of NaN between values in both matrices and then use something like bar(rain_C...

environ 9 ans il y a | 0

Réponse apportée
How do I calculate the mean value for the days in a big data set?
Here is a sample code with 3 variables and 5 days with uniform 5 minute timestep a = rand(288*5,3); t = (1:288:288*6)'; ...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Could anyone please help me to code this problem.
M_sorted = sort(M,'descend'); M_maxtop = M_sorted(1:maxtop(1));

environ 9 ans il y a | 0

Réponse apportée
Sum of certain value in a matrix
See Image Analyst's answer <https://de.mathworks.com/matlabcentral/answers/142281-count-the-number-of-times-a-value-occurs-in-a-...

environ 9 ans il y a | 0

Réponse apportée
.dat file editing
data_in = dlmread('sample.dat'); data_out = [data_in(:,1)*2, data_in(:,2)+4, data_in(:,3)]; save my_data.dat dat...

environ 9 ans il y a | 0

Réponse apportée
wie kann ich die achsen-labels parallel mit der 3d bringen wenn der winkel unbekannt ist ?
Hi, schau mal <https://de.mathworks.com/help/matlab/ref/rotate.html hier> an. hSurface = surf(peaks(20)); direction =...

environ 9 ans il y a | 0

Réponse apportée
split data from workspace
I think Stephen has answered it here. <https://de.mathworks.com/matlabcentral/answers/303817-how-to-split-a-3d-matrix-into-su...

environ 9 ans il y a | 0

Réponse apportée
How to set ytickslabel in graph version R2011b
figure1 = figure; % Create axes axes1 = axes('Parent',figure1,... 'YTick',[-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1]...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
can't find my license number for matlab
type on the command line ver

environ 9 ans il y a | 0

Réponse apportée
How to do well in Matlab?
There are plenty of way to get started. If you are completely new to programming, I'd suggest some basic reading about how progr...

environ 9 ans il y a | 0

Réponse apportée
Matlab™ Optimization Toolbox™
You need to have these toolboxes installed along with Matlab with proper licenses and then you can start with of those <https://...

environ 9 ans il y a | 0

Réponse apportée
How to save specific variable names
workspaceVars = who; findVars = strfind(workspaceVars, 'P250'); indexVars = find(not(cellfun('isempty', findVars))); ...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How to merge cells in excel
Check <https://de.mathworks.com/help/matlab/matlab_external/using-a-matlab-application-as-an-automation-client.html here> . ...

environ 9 ans il y a | 5

| A accepté

Réponse apportée
How can I index-match in Matlab?
I woould actually create another column in DryFlow array to store the result. change this to, FS(k)=DryFlow(k)-Night_mi...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Why is this loop not ending?
Your loop variable increment _i=i+1;_ is part of the else case so once the condition becomes true, _i_ is not incremented. Move ...

environ 9 ans il y a | 0

Réponse apportée
How can I change precision in Matlab?
try <https://de.mathworks.com/help/symbolic/vpa.html vpa> vpa(B,20)

environ 9 ans il y a | 0

Réponse apportée
Are Simulink buses performance effective?
Performance-wise I have never really observed any difference. For one thing, usage of structs/buses makes life easier and especi...

environ 9 ans il y a | 0

Réponse apportée
Make a table from a loop
Hey, you need to save the values inside for loop. You can do it either by creating a bigger x matrix with n rows and 3 columns s...

environ 9 ans il y a | 2

| A accepté

Réponse apportée
How can I add column to a table based on data values in other table ?
A = (1:5)'; B = (1:5)'; C = (6:10)'; T1 = table(A,B,C); T2 = table(A,B); if(isequal(T1.A,T2.A) && isequ...

environ 9 ans il y a | 0

Réponse apportée
Problems with a down arrow displaying in a plot
Like this? text(35.02,5703.42,'$\downarrow 1(D)$','Interpreter','latex')

environ 9 ans il y a | 1

| A accepté

Réponse apportée
how can i create a table of 4 columns from a cell array of 19 columns and name those 4 columns
Something like this maybe. Check <https://de.mathworks.com/help/matlab/ref/cell2table.html this> out. C = {5 'cereal' 110 '...

environ 9 ans il y a | 0

Réponse apportée
How can I roll back matlab R2017a to R2016b ?
There's no such rollbackin Matlab. Popular advice is to install the new version of Matlab in parallel under a new folder (you ca...

environ 9 ans il y a | 0

Réponse apportée
Add two matrices (element wise addition) together ignoring NaNs
Hi, maybe something like this? A = ones(10,3); B = ones(10,3); A([1 6 10],1) = NaN; A([3 7],[2 3]) = NaN; B([3 7...

environ 9 ans il y a | 0

Charger plus