Community Profile

photo

Salvatore Mazzarino


Università degli Studi di Catania

2012년부터 활동

Followers: 0   Following: 0

연락

통계

All
  • Thankful Level 4
  • Solver

배지 보기

Feeds

보기 기준

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

10년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

10년 초과 전

질문


Simulink communication to Raspberry USB port
I would know if it exits a way to let communicate Simulink to a device connected to the USB port of Raspberry Pi?

10년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Designing digital filters by using boards
I would like to design digital filters such as FIR filters in Matlab. I know pretty well how to do that. Additionally I have the...

10년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Find out the real part of symbolic expression by using MuPad
Hello. I'm trying to find out the real part of the following symbolic expression: y0*(y2+jy0)/(y0+jy2) by using MuPad I...

10년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Which could be the smartest way to do what this function does
I should have to graph step discret signal. This is the function. function y = step(a,b,n0,flag) n = a:b; ...

10년 초과 전 | 답변 수: 1 | 0

1

답변

질문


improve performance of this code
suppose to have a matrix called A 3 0 3 3 0 0 4 0 and have this function while(1) if all(A(:,i) == 0) ...

11년 초과 전 | 답변 수: 3 | 0

3

답변

질문


corresponding index of an element
I have two vectors g_counter = [2 0] and list = [3 0] I would get the indices of all the elements belong to g_...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


getting index of elements
I have two vectors g_vector = [2 0] list = [3 0] I would get the index of elements of g_vector that have their i...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


get a matrix of only zero
How can I get a mattrix made of only zeros? For example I have this matrix [2 4 0 5 6 0] I would get a matrix made of...

11년 초과 전 | 답변 수: 4 | 0

4

답변

질문


way to use returned valued of a if clause
I have an if clause if expression do-something end I would use the value return by expression into the...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


append elements to a vector
At the beginning of my simulation I create an empty vector vector = [] During the simulation I insert some elements into...

11년 초과 전 | 답변 수: 1 | 1

1

답변

질문


getting elements of a vector
I have this vector g_counter = [5 6 9 0 0]; list = [1 2 3]; If I do g_counter(list) I get 5 6 9 instead I wo...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


plot bar graph in the same graph
I have a bar graph. I would plot in the same bar graph another bar graph with excatly the same values without overriding the exi...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


creating a simple simulation
I'm trying to create a simple simulation using simscape elements of this circuit <http://imageshack.us/photo/my-images/195/im...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


connect simscape item to ps-simulink converter
I would connect a simscape element directly to ps-simulink converter block but I don't know how to do. Some idea?

11년 초과 전 | 답변 수: 0 | 0

0

답변

질문


connect resistor element to signal generator
I'm trying to create my first simulation with simulink but I have some problems. I would connect Signal generator block to a res...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


initialize a MxN matrix with the same number
I would initialize a M x N matrix with the same number. Which could be the best way in terms of speed? Es. [2 2; 2 ...

11년 초과 전 | 답변 수: 10 | 0

10

답변

질문


setting the step of x and y axes
I'm looking for the way to set the step of x and y axes. does it exist a way?

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


ismember function too slow
I have to improve the speed of my simulation. Well my code is quite simple. I have a vector A=[1 2 3 4 5 6 7 8 9 10] and anothe...

11년 초과 전 | 답변 수: 5 | 0

5

답변

질문


comment lines at the beginning of code execution
I'm finding a way to comment every line where fprintf function appears if the value of DEBUG variable is setted to 0. for exampl...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


better way to improve performance of my code
I'm doing a simulation using for cycle. In this simulation I have a series of fprintf that print out information. To improve th...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


improve this function in terms of speed
In my simulation this function is called many time and I would improve in terms of speed this function so I can earn in executio...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


putting return to a function
I have created a function "my_function" and into it I call another function called "another_function". function my_function() ...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


how to read or write a file according to its absolute path
I read a txt file using importdata. I pass the name of txt file to that function. Instead to pass only the name I would pass the...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


check if a file exists
I'm using the "importdata" function to import data from a text file. I would like to have a way to check if the text file exists...

11년 초과 전 | 답변 수: 7 | 5

7

답변

질문


best way in terms of performance to read a text file
I have to read values from text file that have this body: 1 2 3 4 5 6 7 8 9 10 after having read every of those value I ...

11년 초과 전 | 답변 수: 2 | 0

2

답변

질문


connect these points as a curve
I have a vector made of 10 values 1 2 3 4 5 6 7 8 9 10 and another row vector made of: 1.2012e-03 2.3046e-03 2....

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


looking for an efficient way to activate all fprintf in the function
I have a function and into it there are a lot of fprintf that print out some informations.I would create a way to show or not sh...

11년 초과 전 | 답변 수: 2 | 1

2

답변

더 보기