Réponse apportée
How to calculate cputime in matlab?
Read this MATLAB documentation : Measure the Performance of Your Code

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
3D graphic plot
You can look for the surface handle in the axis children. % Get current axe handle hAxe = gca; % Look for surface handle v...

plus de 5 ans il y a | 0

Réponse apportée
How to store various data types in a nested cell structure?
Why not use a structure array with fields id, type, ptCloud, segmentsArray and size ? myStruc(1) = struct('id', 1, 'type', 'tre...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Import multiple files and plot data.
Here is the mistake for fileNum = 1:numFiles fileName = sprintf('run_%02d',fileNum); myData{fileNum} = importfile("D:...

plus de 5 ans il y a | 0

| A accepté

Question


Simulink slower to compile when 'SrcWorkspace' set to 'current' (call to sim a function)
I received a rather heavy model (.slx ~57Mo, 40k parameters and signals) from a client, and I need to run it several times for t...

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

1

réponse

Réponse apportée
How to delete empty rows from string arrays contained in a cell array?
% Logical array, true when element in cell is empty vb = cellfun(@isempty, MyCell) % Remove empty element MyCell = MyCell(~...

plus de 5 ans il y a | 1

Réponse apportée
Calling a Function with multiple outputs
You should call you function this way : for t=1:50 for i=1:50 [lamdaT(i,t), lamdaW(i,t), lamdaO(i,t)] = mobility_...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I call external functions in different paths within App Designer
You should use relative path instead of absolute one, especially if you make your app standalone. For instance, you can get par...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
ploting a function handle
You are trying to subtract a variable with a function handle Pr_dBm =@(f)( TXPower - PL_dB); You should evaluate the function....

plus de 5 ans il y a | 0

Réponse apportée
How to read some data from a text file
Here one way to do this : % File path FilePath = fullfile(pwd, 'MyFile.txt'); % Open the file FileID = fopen(FilePath, 'r'...

plus de 5 ans il y a | 1

Réponse apportée
On MATLab app designer, how can i get an editfield text as a variable?
If you want to evaluate an expression in a string, check for eval or evalin functions. For instance : x = [1 2]; str = 'x(1)^...

plus de 5 ans il y a | 0

Réponse apportée
Finding multiple mean values of matric
You can use reshape, then mean function. M_1 = M(:,4) M_2 = reshape(M, 50, 160) % 160 = 8000/50 M_3 = mean(M_2,1)

presque 6 ans il y a | 0

Réponse apportée
Is it possible to do this without a loop
% The cos function operates element-wise on arrays v2 = cos((1:100)*pi/8);

presque 6 ans il y a | 0

Réponse apportée
Variable step time with series of simulations in simulink - Plotting Difficulties
You can interpolate your results with interp1 function or a griddedInterpolant object. This way, you'll always have the same poi...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Create array with average values
You can reshape you 1D array to get sensor in rows and time in columns. Data = reshape(Data, 12, 40) and then apply mean func...

presque 6 ans il y a | 0

Réponse apportée
Binarize a metrix with some threshold
You can use the 2nd output of sort function. The code bellow should do what you want. % Random matrix M = randi([0, 1000], 5)...

presque 6 ans il y a | 0

Réponse apportée
Package and class folders are not supported in app designer?
You can create a class folder @MyApp with the file MyApp.mlapp as constructor. Then you can create methods in separate files.

presque 6 ans il y a | 0

| A accepté

Question


Create function handle from function file
Is it possible to create a function handle from function file ? In other words, create a function_handle object @foo from file f...

presque 6 ans il y a | 1 réponse | 0

1

réponse

Question


Change order of custom menu (context menu) in Simulink
I successfully created a custom context menu in Simulink using sl_customization function. However, each custom menu is added at ...

presque 6 ans il y a | 1 réponse | 0

0

réponse