photo

Aquatris


Last seen: 5日 前 2023 年からアクティブ

Followers: 2   Following: 0

統計

All
  • 6 Month Streak
  • Knowledgeable Level 4
  • Community Group Solver
  • Solver
  • First Answer

バッジを表示

Feeds

表示方法

回答済み
writematrix: how to get formatted txt-output?
Use 'tab' delimiter option instead of single space. M = [100 0 4500;0 1 38.29;1 1 38.22]; writematrix(round(M,2),'file.txt',...

8日 前 | 0

回答済み
Simulate recursive function in simulink
I did not care about the dimensions at all while creating the simulink model so some adjustment might be necessary but this is o...

12日 前 | 0

回答済み
Add NaN in the first row of a table
Assuming all your entries are numeric, since you want to assign NaN, here is one way; % create dummy table Age = [38;43;38;40;...

13日 前 | 0

回答済み
Error in displaying the whole matrix
Ther eis probably a 1e6 at the top of the display. You can do 'format bank' to mitigate this if you want or any other format opt...

約1ヶ月 前 | 0

| 採用済み

回答済み
How to update a function with output from another function?
Here is one way iff the required variables are within the state vector 'y', then you can do: %% change ode45 call [t, y] = ode...

約1ヶ月 前 | 0

回答済み
slow drawing of a set of points on a plane
In essence for loop are always slower. So try to vectorize your code whereever possible for efficiency, here is a good read. In ...

約1ヶ月 前 | 0

| 採用済み

回答済み
plot magnitude data at location (x,y,z)
Here is one way where you use colors to indicate the magnitude; % random data x = [0:pi/50:10*pi nan]; % nan is added to remov...

約1ヶ月 前 | 0

回答済み
Generate the motion (Trajectory) of a sphere (or point) with given velocity value
If you dont care about the actual timing and things, here is one way where the colors of the path indicate the speed and a simpl...

約1ヶ月 前 | 0

回答済み
How to generate vector with non-linear spacing?
The answer from another question here: A = 1; B = 5; std = .9; % need to play with this to get desired shape within desired r...

約2ヶ月 前 | 0

回答済み
Second Order Laplace solving doesn't work ('Unable to find explicit solution')
Not sure the underlying reason behind it but you are defining the X as a function of s and solve function seems to be having tro...

約2ヶ月 前 | 0

| 採用済み

回答済み
How do I solve system of differentials using ode45 and eom functions
You defined a symbolic variable within your ode function, which is a nono if you wanna solve it numerically :D function ds = e...

約2ヶ月 前 | 1

| 採用済み

回答済み
Solving with ode45 with a solution dependant variable in the ode
No, you should not do it that way. Instead you should create your function properly in a way that represents the equations. It w...

約2ヶ月 前 | 0

回答済み
How to display a color bar in Matlab as shown below
You can call the colorbar function with the desired tick values Z = peaks; contourf(Z) colorbar('ticks',[-6:0.5:8])

約2ヶ月 前 | 1

回答済み
Error in for loop: Index exceeds matrix dimensions.
You have essentially made two mistakes: matrix_f only has 6 rows. You setup up your for loop such that k is 1 2 3 4 5 6 . When ...

2ヶ月 前 | 0

| 採用済み

回答済み
Friend Function implementation in MATLAB
You can use the Access List property. Here is more explanation. Here also.

2ヶ月 前 | 0

回答済み
how to do rising and falling edge in single signal using signal builder..?
Click on Signal->ReplaceWith or New->Square and play with the points. Alternatively, click on Signal->Custom-> enter your time...

2ヶ月 前 | 1

| 採用済み

回答済み
how to make task in simulink
You can specify sample time of each block seperatly. Here is more information and how to do it for different blocks, subsystems ...

2ヶ月 前 | 0

回答済み
How to loop through cell array and apply script to each double?
You can use the cellfun function, where you use your script as the function. Example: a = {1:3, 200:205, 10:12}; new_a = cell...

2ヶ月 前 | 0

回答済み
Unable to obtain double precision from symbolic value
You need the vpa function x = 2; a = sym(1/3); f = a*sin(2*pi*x) fVpa = vpa(f,10)

3ヶ月 前 | 1

| 採用済み

回答済み
Help with contour plot
You actually do have 5 lines but they are on top of each other thats why you do not see them. So your Z matrix for k1(1) and k1(...

3ヶ月 前 | 0

| 採用済み

回答済み
count number of elements for each slice of a vector
Here is one simple way: A = [2 1; 3 1; 4 2; 5 2; 6 2; 7 1; 8 1; 7 1; 5 2; 6 2]; ...

3ヶ月 前 | 0

| 採用済み

回答済み
First cell in a string array is empty, how to replace this?
The issue is you are not initiating and filling the mode1_status matrix properly. Your initial mode1_status matrix is a 1x1 matr...

3ヶ月 前 | 0

| 採用済み

回答済み
Which MATLAB license should I buy as a reseacher working in an NGO?
The best way to know is by contacting the sales directly, say it is a nonprofit NGO and for research. They might offer you eithe...

3ヶ月 前 | 2

回答済み
Matlab optimization - variables to satisfy L1 norm
You create a nonlinear constraint functio and give it as an argument to the fmincon. [x,fval,exitflag,output]=fmincon(@(x)costF...

3ヶ月 前 | 1

回答済み
How to draw a Nyquist plot while avoiding the pole at the origin
I dont think the nyquist plots looks exactly like you draw by hand. You can set the axis limits to make the nyquist plot visib...

3ヶ月 前 | 0

回答済み
How to draw a graph like the image attached below in MATLAB
You can also use countourf function; % random data from countour example x = linspace(-2*pi,2*pi); y = linspace(0,4*pi); [X,...

3ヶ月 前 | 0

回答済み
Insufficient number of input parameters.
The calculate_gain_sfunc requires an input. You called it without any inputs. calculate_gain_sfunc % WRONG way to run the func...

3ヶ月 前 | 0

回答済み
Hi All. Just wondering why answer to (i) is not 4.9e+4. an why answer to (iii) is not (9x)/2 or 4.5 x. Many thanks. Brian
Your value in (i) for f(1.2) is 49020.80113638172, so when you round to 1 decimal, it becomes 49020.8 which in engineering notat...

3ヶ月 前 | 1

回答済み
How can I express all the variables Vcm1, Vcm2, Vcm3, Vcm4 in num2str without getting an error?
Dont know what exactly you are trying to do but here is an example using your variable names: dim = [0.2 .5 0.25 0.1];% normali...

3ヶ月 前 | 0

| 採用済み

回答済み
Intersection condition between two ellipses
Here is one way where accuracy will depend on selecting the threshold correctly. You simply solve the equation for y given an x ...

3ヶ月 前 | 0

さらに読み込む