Réponse apportée
how to list first 50 prime number after 229 in 10 x5 matrix
a=primes(1000); b=a(a>229); c=reshape(b(1:50),10,5)

plus de 5 ans il y a | 0

Réponse apportée
Block Parameters are Always Deleted
That is expected behavior. I don't know why it was designed that way. To avoid the problem, do either one of these: Create the ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Im Having issues making the IF conditions read the input placed from options.
use option=input('prompt','s') to enter a string, not numerical data

plus de 5 ans il y a | 0

Réponse apportée
I want MATLAB to trigger an event at 8:00 AM tomorrow, how would I do that?
No. That won't do it. You need to look into this. https://www.mathworks.com/help/releases/R2020b/matlab/ref/timer-class.html

plus de 5 ans il y a | 0

Réponse apportée
How to select specific elements of a matrix and save them in another matrix?
B=A([false;diff(A)>1])

plus de 5 ans il y a | 0

Réponse apportée
Legend: is it possible to remove the border while leaving the background color?
set( leg , 'fontsize' , 20 , 'location' , 'east', 'color' , 'g' , 'box' , 'on','edgecolor','g' )

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Reading mat-files from one cell to another cell array
Something like this. Look for function reshape(). O=XTrain; for s=1:88 O{s}=reshape(XTrain{s},x,y,z); end

plus de 5 ans il y a | 0

Réponse apportée
How to know whether what are all the toolboxes are using in our current MATLAB machine?
run "license inuse"

plus de 5 ans il y a | 0

Réponse apportée
I have no idea if that possible to in Simulink or not , please help
Given a curve and try to figure out an approximate formular is called curve fitting. Don't do it in Simulink. Do it offline in M...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I model the integrator show the desired reset behaviour?
I can say for sure that this is not an Integrator setting issue. For the blue curve, it looks like the response of a highly damp...

plus de 5 ans il y a | 0

Réponse apportée
How can I use two different parameters as an input?
If you are talking about "Ks" in the transfer functions, all you need is to define it in MATLAB base workspace, e.g. Ks=100;

plus de 5 ans il y a | 0

Réponse apportée
Trying to use different signals at different times
All you need is to set the initial value of the "Unit Delay" block as "Temp FL Initial"

plus de 5 ans il y a | 0

Réponse apportée
Is it possible to have a column data with some numerical values and some strings?
Where does A come from? In MATLAB, A can not be stored as A = [53; 26b] or A={53; 26b}. If the source data comes from Excel fil...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
writematrix resizing column widths
Look for the 'PreserveFormat' and the 'UseExcel' properties. Also, look for the writecell() function.

plus de 5 ans il y a | 1

Réponse apportée
Converting cell array to matrix
>> a={[1 2],[3 4]} a = 1×2 cell array {1×2 double} {1×2 double} >> cell2mat(a) ans = 1 2 3 4 >>...

plus de 5 ans il y a | 0

Réponse apportée
Change output resolution by export_fig
export_fig() must be a customized function. You have to look at its syntax to learn how to specify resolution. You could use th...

plus de 5 ans il y a | 0

Réponse apportée
How can I get a string with a line break to be centered in a uicontrol?
I don't know why, but try and error and then got lucky. %% f = figure('Position',[300,300,600,600]); uicontrol('Parent',f,......

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to call a callback from one GUI to another separate GUI?
To call a callback is to call a function. So if you save that function in a separate file and package it with GUI1 and GUI2, the...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Error using sub2ind (line 43) Out of range subscript. How to solve this?
[row1,col1] is the index for mat_zer in sub2ind(), it is using size(mat_zer_pm) Do mat_zer_pm and mat_zer have the same size a...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Make all values of array Nan except for specified locations
%% a=magic(5); RowPos=[1,3,5]; ColPos=[2,4,5]; ind=sub2ind(size(a),RowPos,ColPos); b=nan(size(a)); b(ind)=a(ind);

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Using dynamic workspace arrays as Matlab function input/output
Use vector signal between part 1 and part 2. No need to use memory block. Use Unit delay to resolve algebric loop if needed. Us...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Getting output data from Simulink
The different size of the logged data is caused by the variable-step solver. To get a consistent and fixed size log data, use a ...

plus de 5 ans il y a | 1

Réponse apportée
Create a block table using script
This inner loop does not make sense. for i = getBlock(n, 1) tableStruct = struct(get(i), 'Name'); end...

plus de 5 ans il y a | 0

Réponse apportée
Sine Wave not recognize with find_system
The 'BlockType' for the "Sine Wave" is 'Sin'.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Force Simulink Coder to regenerate code and rebuild a model
rtwbuild('rtwdemo_mdlreftop','ForceTopModelBuild',true)

plus de 5 ans il y a | 1

Réponse apportée
How can I open the Code-Generation Report of the hdlcoder
See this Q&A. https://www.mathworks.com/matlabcentral/answers/278856-how-do-i-open-the-code-generation-report-after-it-s-been-c...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
sim('') command with supressed ";" still displays a variable on command window (it's spamming it)
You need to go to your Simulink model to find the source of the assignment line "y=something" where ";" is not present. It could...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Can one define a "directory" as a "variable"?
directory='c:\myfolder'; filename='myfile.xlsx'; readtable(fullfile(directory,filename));

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
What is the ID of styecheck jc_0803 ??
MA check for jc_0803 in introduced in R2020a. See at the bottom of the link. https://www.mathworks.com/help/releases/R2020a/sim...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can find all stateflow objects which used function?
If you use "MATLAB action language" in your chart, then the floor() function is the same as the floor() function provided by MAT...

plus de 5 ans il y a | 0

Charger plus