Réponse apportée
How can I format the datetime when the format is not recognized?
a="20200310T102613000"; >> datetime(a,'inputformat','yyyyMMdd''T''HHmmssSSS') ans = datetime 10-Mar-2020 10:26:13

plus de 6 ans il y a | 1

Réponse apportée
Plot a VS graph from simulink scope to Matlab
Simulink Scope is always time based so the x-axis is always time. If you want Torque vs Speed, you need to use the "XY Graph" bl...

plus de 6 ans il y a | 2

Réponse apportée
How can I create three 2,2,x subplots (total 12 subplots in 3 plots) from my surface of my FourierAnalysis?
figure(1) subplot(2,2,1); % more subplot figure(2); subplot(2,2,2); % more subplot figure(3); subplot(2,2,4) % more subp...

plus de 6 ans il y a | 0

Réponse apportée
How can I find specified Block Types in Simulink ?
Advanced, then select BlockType, and set value

plus de 6 ans il y a | 0

Réponse apportée
Error: Function definitions are not permitted in this context
Cut these code from your script. Create a separate .M file called fun.m and past the code. %fungsi objektif function f = fun( ...

plus de 6 ans il y a | 0

Réponse apportée
How do I get stateflow to use parameters in Simulink.parameter object?
If you add a "data1" in Stateflow and specify its scope as "Parameter" and "Type" (meaning data type) as "Inherit: same as Simul...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Index in position 1 is invalid error
before the loop, check the value of n and m. They might not be an integer. You are doing pointer(n,2) for the first loop.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Loading text file with header and using Textscan yeilding empty array
Your code works fine, not sure what is the problem. Another way is to use importdata() out=importdata('file.txt',' ',6) str=s...

plus de 6 ans il y a | 0

Réponse apportée
bode function plot Help
You may not have the Control System Toolbox, which is required for having tf(). Run "ver control" to find out >> H=tf([10,0],...

plus de 6 ans il y a | 1

Réponse apportée
Find column position of trues in a binary matrix
see if you can get it from [i,j]=find(A) >> A = [1 0 1 0 0; 0 0 1 0 1; 1 1 0 0 0]; [R,~]=find(A.'); out=transpose(r...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
upgradeadvisor always compares incompatibilities with the latest Matlab release?
The answer is yes. Basically, it is the upgradeadvisor() function contained in each version of MATLAB/Simulink. The output might...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Simulation doesn't see variable when called inside a function
The problem is that in your model, the block 'zad4/Constant' is looking for the parameter 'Value', presummabley from the base wo...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Save out. variables of Workspace to .mat
with model open, press Ctrl+E, select "Data Import/Export", un-check "single simulation output"

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
isempty: Not enough input arguments.
Do you have an example data? >> x.y.z=[] x = struct with fields: y: [1×1 struct] >> isempty(x.y.z) ans = logic...

plus de 6 ans il y a | 0

Réponse apportée
Custom plot in MATLAB?
https://www.mathworks.com/help/releases/R2019b/matlab/creating_plots/plotting-with-two-y-axes.html

plus de 6 ans il y a | 0

Réponse apportée
Export Spectrum Analyser trace to workspace or file
Run this to open the document and example, I believe the answer can be found there. The key is probabaly the function getMeasure...

plus de 6 ans il y a | 0

Réponse apportée
Running simulink model in a for loop and separately storing variable data in each loop
If theta is a scalar, P1=1:1:5; P2=2:1:5; SavedTheta=zeros(length(P1),length(P2)); for i=1:(length(P1)) for j=1:(length...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
creating new fields in multiple structures with loops
This is the time to use structure array, not to use strA, strB, strC, ... Just like use array A=1:3, not to use A1=1, A2=2, A3=...

plus de 6 ans il y a | 0

Réponse apportée
Using Timer to switch off a switch in Simulink
No need or it's hard to do it using MATLAB Function block. Hope this answer gives you a clue. https://www.mathworks.com/matlabc...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Unable to get Embedded coder options while using borrowed license
The license info showed at "ver" command only shows the toolboxed "installed". Run "license inuse" to find out if you possess th...

plus de 6 ans il y a | 0

Réponse apportée
How to combine 2 structures into 1?
d=[struct2cell(a);struct2cell(b)]; f=[fieldnames(a);fieldnames(b)]; c=cell2struct(d,f)

plus de 6 ans il y a | 0

Réponse apportée
How to get last numerical value from column A only?
P(1,end) would be it.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Vector Manipulation into a matrix?
A=(1:21)'; temp1=reshape(A,3,[]); temp2=temp1'; B=fliplr(temp2)

plus de 6 ans il y a | 1

Réponse apportée
How can I index a vector based on the vector's values?
I believe it is like this V = [2 5 4 1 3]; newV=zeros(size(V)); index=1; for k=1:numel(V) newV(k)=V(index) index=n...

plus de 6 ans il y a | 0

Réponse apportée
How to sum multiple rows elements within the matrix
a=rand(6,7); b=reshape(a,3,[]); c=mean(b); d=reshape(c,2,[]);

plus de 6 ans il y a | 0

Réponse apportée
Why there is a problem coming in the connection although I am using a Voltage sensor compatible block for this?
Please read and undrstand the block. Connect the Positive and Negative terminal. V is the Physical signal output port for voltag...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Error using readtable, Input must be a row vector of characters or string scalar: WHERE IS YOUR PROBLEM??
readtable() can read one file at a time. Your "files" variable seems to contain multiple files. So you can't use readtable(files...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Why am I receiving "Error using ones Size inputs must be scalars" when I try to get submatrix with this function?
Then you can't do ones(n,n) since >> n=sqrt(N) n = 1.0000 2.0000 1.7321 1.4142 1.7321 1.4142 2.0000 ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Run matlab command after Simulink code gen is complete?
set_param(model, 'PostCodeGenCommand','pcgScriptName') but I would create a script to call rtwbuild() to generate code and then ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to convert an integer value in real value (float) simulink
Date Typer Conversion block?

plus de 6 ans il y a | 0

| A accepté

Charger plus