Community Profile

photo

Riccardo Scorretti


Lab. Ampère - UMR 5005 CNRS, France

Last seen: Today 2020년부터 활동

Followers: 0   Following: 0

연락

Programming Languages:
C, MATLAB
Spoken Languages:
English, French, Italian
Professional Interests:
Electromagnetics, Finite Element Analysis (FEA)

통계

All
  • 3 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Thankful Level 2
  • First Submission
  • GitHub Submissions Level 1

배지 보기

Feeds

보기 기준

답변 있음
Problem with Simulink/coder to use LCD 1602 display
Actually I solved myself the problem. In case it may be useful to someone: problem: the file LiquidCrystal_I2C.h was included f...

3개월 전 | 0

| 수락됨

질문


Problem with Simulink/coder to use LCD 1602 display
Hi there, I'm trying to write a Simulink block to use with Arduino an LCD 1602 driven through the I2C port. What I would like ...

3개월 전 | 답변 수: 1 | 1

1

답변

질문


How to set programmatically the stepping mode of a stepper motor driver in Simscape?
I'm running a Simscape model stepper_motor.slx inspired by the demo "Stepper Motor with Control" (file ee_motor_stepper.slx). Th...

10개월 전 | 답변 수: 1 | 0

1

답변

답변 있음
Can't type tilde ~In MATLAB 2023a
Dear Martin, I have a similar problem with the key ^. By all evidence Antonio is right: the problem is with the uncorrect hand...

12개월 전 | 2

답변 있음
how to plot graph for specific points
Assuming that variables a, b, ... j make sense, you can do more or less like this: x = [1 2 3 4 5 7 8 9]; y = [a b c d e f g h...

거의 2년 전 | 0

| 수락됨

답변 있음
how to differentiate this function
Assuming that you want to differentiate ph and a with respect of r, you have several options (and the best option depends on wha...

거의 2년 전 | 0

답변 있음
contour level appointing problem
Hi Asliddin, the problem is that in your own data sometimes the value for which you wish to plot the isovalue does not exist. S...

거의 2년 전 | 0

답변 있음
if else statement with strings
That's being said, your problem is (most probably) that you wish to ask the user to enter a string: filter_option = input(msgou...

거의 2년 전 | 0

| 수락됨

답변 있음
functions not working for a matrix created in for loop.
It gives that error the second time you run the code; the very first time it works nice. The problem is that in the last line: ...

거의 2년 전 | 1

| 수락됨

답변 있음
How do I make my fprintf columns output neatly?
Hi. I think it is better to work with fixed length fields rather than tabulations (which have the problem of being system-depend...

거의 2년 전 | 1

답변 있음
Colormap limits between 0 and 1
I think you have to rescale the plotted quantity. That is: val = mean(abs(Ex).^2 + abs(Ey).^2, 3); val = val / max(val(:)); p...

거의 2년 전 | 0

| 수락됨

답변 있음
How to distribute random number of users within the different circles
That's ok? % Coordinates (x0,y0), radius (rad) and number of users (nbu) for each circle x0 = [100 450 500 650 900 900 800]...

거의 2년 전 | 0

답변 있음
Table define colums in more columns
Perhaps you need something like this? load Test_Table.mat tab = table('Size', [numel(Test_Table) 3], ... 'VariableNames',...

거의 2년 전 | 1

| 수락됨

답변 있음
Why these two similar operations (a sparse matrix w/o transpose times a vector) take different time to finish?
Interesting. I tried to see what happens with matrix of different sizes: n = round(logspace(1, 6, 30)); t = []; figure for k...

거의 2년 전 | 0

| 수락됨

답변 있음
Diagonal sums with non-zero elements
Hi Ingrid, I guess you mean you want to compute te sum of the diagonals of the permuted matrices containing all non-zero elemen...

거의 2년 전 | 1

| 수락됨

답변 있음
How to correct the error in code?
Hi Susan, there is a macroscopic error in your code: F1=@(A)(-H(x,:).*log(1+A(x,:))+a1(k).*(G(x,:)-A(x,:))); You defined an...

거의 2년 전 | 2

| 수락됨

답변 있음
Error while using a function instead of a .csv file
n = 5:40; % these are the limits of the function n runs from 5 to 40: you are bound to have problems when trying to evaluat...

거의 2년 전 | 0

답변 있음
Coding a "Are you sure you want to exit?" prompt when exiting app GUI
You could modify the code of callback ExitPressed more or less in this way: answer = questdlg('Are you sure you want to exit?',...

거의 2년 전 | 0

| 수락됨

답변 있음
Eig Argument Command Error
Hi. The problem is not with the size of K and M; the problem is that in your code K and M are symblic variables. Juste convert t...

거의 2년 전 | 0

답변 있음
i m trying interpret this simple matrix code..
rand('seed',345); B = randi([-150,300], 10, 7); [y,in] = sort(B(:,3)); You are sorting a column vector (= the 3rd column of B...

거의 2년 전 | 1

답변 있음
for loop to evaluate every minute
% Setup variables data = [ 20 1 20 1 0 0 375 0 200 0 20 1 50 0 150 0 ...

거의 2년 전 | 0

답변 있음
Calculate the required area
Let's start by checking the function g = profile of your building: g = @(x, y) 1./((2+1.1.*x.^2+1.1.*y.^2).^(1/2)); a=0.0; b=...

거의 2년 전 | 2

| 수락됨

답변 있음
Can a for statment contain a matrix
The problem is formulated in a somehow unclear way. However, assume that we have a 200x1 matrix: % Generate some random data, f...

거의 2년 전 | 0

| 수락됨

답변 있음
several minimum values on a vector
I'm not sure to understand completely the question, hower you can use find to get all the values which are strictly equal to the...

거의 2년 전 | 0

답변 있음
How to integrate given the two data columns
Most probably like this: CHARGE = sum(CURRENT(1:end-1) .* diff(tz));

거의 2년 전 | 0

답변 있음
Reversing a part of matrix
Another way (more efficient, I think) is to do a swp by hand: M=[10 20 30 40 50 60 70 80 90 100]; t = randsample(10, 2) % I ...

거의 2년 전 | 0

답변 있음
Reversing a part of matrix
A possible way is to pass through an vector of index (= ind in the code hereafter): M=[10 20 30 40 50 60 70 80 90 100]; t = ra...

거의 2년 전 | 0

답변 있음
How to resize UI table to fill window?
Hi Logan, setting Units to normalized is not enough: you have to modify also the property Position: LastName = {'Sanchez';'Jo...

거의 2년 전 | 0

답변 있음
I would like my code to allow the user to plot as many circles as they want until the user right clicks, if the circle plotted intersects any other circle it must change color
Hi. Here is a possible implementation of what you want. Basically, the set of circles are stored in arrays setOf_xc, setOf_yc an...

거의 2년 전 | 1

| 수락됨

답변 있음
There is a problem with the find function
Dear 文辉 沈 , the result you obtain is quite logical. Consider the following example: bw = zeros(4, 5) ; bw(end,2:4) = 1 You a...

거의 2년 전 | 0

| 수락됨

더 보기