photo

Luca Ferro


Last seen: plus d'un an il y a Actif depuis 2023

Followers: 0   Following: 0

Scripting enthusiast

Statistiques

All
  • MATLAB Central Treasure Hunt Finisher
  • 3 Month Streak
  • Knowledgeable Level 4
  • Speed Demon
  • CUP Challenge Master
  • First Review
  • Thankful Level 3
  • First Answer
  • Introduction to MATLAB Master
  • Commenter
  • Promoter
  • Community Group Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
Setting properties for uicontrols using for loop
You don't really need a loop. Scenario 1: Numeric Edit field/Dropdown/Slider/... + Apply button Ater the user has chosen the i...

plus d'un an il y a | 0

Réponse apportée
Extract segments from signal
This is the closest i could go as of right now, i'll revise it in the next days. But i'll share it so that someone else can buil...

plus d'un an il y a | 0

Réponse apportée
How do I install the Matlab documentation locally on a machine WITHOUT an internet connection?
i think you best option is to follow this guide: https://www.mathworks.com/help/releases/R2023a/install/ug/install-documentati...

plus d'un an il y a | 0

Réponse apportée
Solving unknown matrix with iterated column vector
i'm not really quite sure about what operation you are trying to solve and how to solve it, but for theF iteration part this wo...

plus d'un an il y a | 1

Réponse apportée
Find the first value of each groups.
It's not the most efficient way since it uses loops and find instead of indexing but this works: x = [3 3 3 4 4 5 5 5 5 3 11]'...

plus d'un an il y a | 0

Réponse apportée
Importing excel time data
I think you can find your solution here https://it.mathworks.com/matlabcentral/answers/25216-reading-time-dates-from-excel

plus d'un an il y a | 0

Réponse apportée
How to print the image name
assuming that you have the name of the image as a string: app.ThisIsYourEditFieldName.Value=thisIsYourImageName; for a more pr...

plus d'un an il y a | 0

Réponse apportée
How can I save images in a matrix?
you can store them in a cell array by doing: imgArray{1,1}=imread('whateverimage.png'); imgArray{1,2}=imread('whateverimage2....

plus d'un an il y a | 0

Question


Plotting on matlab app panel does not update the tick labels but it overlaps them
I'm trying to plot a preview of a signal on a uipanel in a matlab app. What happens is that the first time you preview it everyt...

plus d'un an il y a | 1 réponse | 0

1

réponse

Réponse apportée
Array indices must be positive integers or logical values.
You cannot name a variable with the same name as a built-in matlab function. Change the line det=det(A) to something else like...

plus d'un an il y a | 0

Réponse apportée
Find the difference between all columns of a given row of a matrix
a=[1 3 5 -3]; aPerms=nchoosek(a,2); %generates all unique couples absDiff=abs(aPerms(:,1)-aPerms(:,2))' %absolute difference o...

plus d'un an il y a | 0

Réponse apportée
How to produce Gaussian random variable between two vectors ?
I would do it like this (assuming i understood correctly): sr = [1,2,2,2,3,3,3,4,5]; % various possible source ta = [2,3,6,8,6...

plus d'un an il y a | 1

Réponse apportée
How to inline/extract subsystem contents in Simulink programmatically
I found the solution to this, i'll keep the question just because it can be useful for someone in need of the same function sinc...

plus d'un an il y a | 1

| A accepté

Question


How to inline/extract subsystem contents in Simulink programmatically
What i would like to do is to extract the contents of a subsystem deleting the subsystem itself. I know this can be done in sy...

plus d'un an il y a | 1 réponse | 1

1

réponse

Réponse apportée
i keep getting syntax error please help
to multiply you have to use *. Assuming you defined or sym t, x_p = -0.3906*sin(0.559*t) + 156.25*cos(0.559*t);

plus d'un an il y a | 1

Réponse apportée
extract py.list data in matlab to numeric
let's say that pyList is your list: cellPyList=cell(pyList); %converts to cell array of form {[1]},{[2]},... arrPyList=[cell...

plus d'un an il y a | 0

Réponse apportée
please help me in solving these equation showing error 0-by-1 and warning: Unable to find explicit solution
Not every system of equations, or even single equation, can be explicitly solved. in your case the single equations can be solv...

plus d'un an il y a | 1

Réponse apportée
How do I fill an editor box in app designer (numeric or text based on case) with outputs from a regular matlab code?
The script has its own scope and the app has its own scope. The script cannot use variables and methods outside of his scope. ...

plus d'un an il y a | 0

Réponse apportée
What does get_param(gcb,'blocktype') returns for block which are from non-installed toolbox ?
my guess is that yes, it is a subsystem reference but since the toolbox is not installed you don't have the source of the refere...

plus d'un an il y a | 0

Réponse apportée
How to extract only one file from a zipped folder
This cannot be done using matlab only, it requires Java as well. You can refer to this thread for extracting file names and pa...

plus d'un an il y a | 0

Réponse apportée
change background color in parallelplot
I don't think it is possible. I tried to look into all the properties of a parallelplot figure (and more in general of a plot fi...

plus d'un an il y a | 1

| A accepté

Réponse apportée
How to save a part of a Simulink model as image?
Probably too late but i'll leave it here for those that might need it: print('-modelName/subSystemName','-djpeg','-r300','mode...

plus d'un an il y a | 1

Réponse apportée
Why I get error to solve this ODE with euler method?
First a suggestion, this line really doesn't make any sense: M(1)= 2; just do M=2; and you get the same result and you don'...

plus d'un an il y a | 0

| A accepté

Réponse apportée
how can i use struct to "for" when i use predictFcn
You should have all the model names in an array, then loop using a proper index and eval the expression. modelNames=["Tree", "...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Concatenate two vectors with different dimensions and sort the result in an ascending order.
Be careful because you made a typo while defining B, the last element has a ',' instead of a ';'. B = [ 2 ; 4 ; 5 ; 7 >,< 0]; ...

plus d'un an il y a | 1

Réponse apportée
Why do I receive the error "Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in A01_pr_rain_UK (line 3) fname=fns1.name "?
'dir' returns an empty structure since for whatever reason, most likely a path issue, it cannot find the said files. The empty...

plus d'un an il y a | 0

Réponse apportée
What happens if I change the parameters of a copy of a subsystem in simscape?
No the copy is not linked whatwoever with the original. What you are searching for is a reference block: https://ch.mathworks...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How can I find the angle between two vectors that answer should be between 0 to 2*pi
This question is a duplicate of: https://ch.mathworks.com/matlabcentral/answers/16243-angle-between-two-vectors-in-3d As sugges...

plus d'un an il y a | 0

Réponse apportée
save animation into gif
use this function from file exchange: https://ch.mathworks.com/matlabcentral/fileexchange/63239-gif I personally use it every...

plus d'un an il y a | 0

Réponse apportée
Create a single variable to store multiple correlation coefficients
this would do the trick and store the correlation values in a 300x7 matrix for rr=1:size(AA,1) for cc=1:size(AA,2) ...

plus d'un an il y a | 0

Charger plus