질문


Varargin - mistake in my example
Hi everyone, I wrote the following function: function [x] = ingressi_arbitrari(varargin) x=0; for k=1:nargin ...

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

2

답변

질문


Output of sprintf - string?
Hi everyone, on Matlab's documentation I read that sprintf is a function which takes as input data and returns a string. If I...

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

1

답변

답변 있음
Count number 1 in the row
z=[0 0 0 1 0 1 0 0]; a=length(z); b=0; for i=1:a if(z(i)==1) b=b+1; end end

8년 초과 전 | 0

질문


How create string like this: word+number+word with number=num2str(x)
Hi everyone, how could I write a string like the following word+number+word with number=num2str(x). For example: x=2; x_s...

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

2

답변

질문


Adding third dimenstion to 2D plot
Hi everyone, I'd like to plot three functions: x=[-20:0.001:20]; y1=sin(x); y2=x*x+x; y3=x*x*x; where y1(x) sta...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


solution of differential equation
Hi everyone, how could I solve dx/dt + x = sqrts(sin^2(t)) on Matlab? I tried with statements: close all clear all t=[0:0.0...

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

1

답변

질문


Handle of a figure
Hi, I read that the command gcf is the handle of the current figure. What is an handle? If is a pointer, why it does not contain...

거의 10년 전 | 답변 수: 2 | 0

2

답변

질문


how can I insert a colorbar on the horizontal axis so that, choosing abscissa, the color matching abscissa corresponds to the value of the function?
how can I insert a colorbar on the horizontal axis so that, choosing abscissa, the color matching abscissa corresponds to the va...

거의 10년 전 | 답변 수: 0 | 0

0

답변