Risposto
Arrow lengths don't represent the ratio of velocities for 2 Quiver Plots
D = load('Data.mat'); figure quiver(D.xposition,D.yposition,D.uvelocity,D.vvelocity,'b','AutoScaleFactor',2.5) hold on quive...

13 giorni fa | 0

Risposto
not enough input arguments
syms x f=inline('(4*exp(-x/10))*rectangularPulse((x-4)/3)','x'); int((f(x))^2,x)

13 giorni fa | 0

| accettato

Risposto
Taylor's series method to solve first order first degree ODE
Use taylor function clear clc syms x y(x) x0 = 0; y0 = 1; y1 = x^2*y-1; y2 = diff(y1); y3 = diff(y2); y4 = diff(y3); ...

13 giorni fa | 0

Risposto
How to use Runge-Kutta orde 4 in sigmoid equation. I want to plot sigmoid equation with Runge kutta orde 4th but my graph is linear. I need help
You need to pass both t & S parameters to function fRK4S according to Runge-Kutte 4th order scheme %This is my Runge Kutta f...

14 giorni fa | 1

| accettato

Risposto
Invalid array indexing. Column 77. Help
delete the (1), (2) & (3) after cross function and place it inside as shown quiver3(position(1), position(2), position(3), .....

14 giorni fa | 0

Risposto
Bar graph in app designer interface
bar(app.histo,x,y) Try only using the above arguments. I think you want some histogram to be plotted , in that case use *hi...

15 giorni fa | 0

| accettato

Risposto
I can't find what's wrong with my code
clc clear close all %input data D_AB=1.5e-07; D=0.1; t=5058.85; n=5; c=0.02; y=0; %because as n increases, series ...

16 giorni fa | 0

Domanda

Is it possible to Merge points from two accounts for same user ?
Hello , Suppose if a user has multiple Mathworks accounts and wants to merge both accounts. If yes, how does it work? Is it ...

16 giorni fa | 0 risposte | 0

### 0

risposte

Risposto
Inf or NaN whilst trying to run a function
T_datum_K = 25+273.15; T_in_K = 199.3 + 273.15; T_out_K = 359 + 273.15; %Ar C1_Ar = 20786; C2_Ar = 1; C3_Ar = 0.1; C4_Ar ...

17 giorni fa | 0

Risposto
I am having issues concatenating arrays
In the below line you have several variables, C2m, Fc, Am which may be multidimensional matrices KIc0 = sqrt(1e-3 * (1 - Vv(k...

18 giorni fa | 0

| accettato

Risposto
for generation of 10 i nput in each sequence for a sinusoidal signal
clearvars % size or range of iteration k = 4:1000; x = 1.05 * sin(pi*k/45) for J = 1:length(k)-9 X(J,:) = x(J:J+9); en...

19 giorni fa | 1

Risposto
Inconsisent(?) behaviour of str2num() with a particular usage
The function *str2num* can be used to convert the strings that inherently contain numbers to double class. In your case ther...

19 giorni fa | 1

| accettato

Risposto
how to plot in matlab a formula with multiple summation ?
% parameters dH = 0.5; M = 100; K_UE = 1:20; SNR0_dB = 0; SNR0 = 10^(0/10); beta_bar_dB = -10; beta_bar = 10^(-10/10); n...

20 giorni fa | 0

Risposto
Using variable legend in a for loop
n0 = 1; lam = 3:0.01:7; a1 = 3.263; b1 = 0.1644; n1 = sqrt(1 + (a1.*(lam.^2))./((lam.^2) - (b1^2))); ns = 1.5; th = 0; i...

21 giorni fa | 0

| accettato

Risposto
I got a blank figure while trying to plot the phase space
Choose better initial conditions e.g. for q1 and q2 they are both zero close all D=0.02; r=0.04; A=2.5; B=0.01; z=3.0; C...

22 giorni fa | 1

| accettato

Risposto
How can I set the NaN values to black in a pcolor plot?
% Generate sample data data = rand(10, 10); data(3, 3) = NaN; % Set a specific value as NaN % Create the pcolor plot figur...

22 giorni fa | 1

Risposto
App Designal : write string in a culumn "A" in the table
Try below app.UITable.Data = ["fdgfdg" "gg" "ghh" "jjj"] in place of app.UITable.Data = ["fdgfdg" ;"gg" ;"ghh"; "jjj"]

22 giorni fa | 1

Risposto
How to Italicize either of the axis tick labels ?
Use '\it label text' % italic font xticklabels({'\it text1','\it text2'}) % normal (plain) font xticklabels({'text1','tex...

24 giorni fa | 0

| accettato

Risposto
Generating an error bar plot with a custom equation fit
If you want to add multiple lines for errorbars i.e. both y data and y data fitted along with their deviations, you can plot the...

24 giorni fa | 0

Risposto
Bringing plots to the "front" to make them more visible?
Use a marker and increase fontsize p2 = plot(x, data, 'k'); p2.Color(4) = 0.2; hold on plot(x, means,'ro','MarkerSize',12,'...

24 giorni fa | 0

Risposto
How to take an integral symbolically and then convert it to type double?
syms t omega real A = rand(1000,1); % specify the integration variable t as the argument I = double(vpa(int(A.*sin(omega*t),t...

24 giorni fa | 0

| accettato

Risposto
Replacing sequences in matrix
clear; close all; clc; results = [4 5 6 7 8,9 10 11,12,13, ... 104,105,106,107,108,109,110,111,112,113, ... 204,205,2...

25 giorni fa | 0

Risposto
A line does not appear when I plot
% inside the for loop Temp(h) = q./(6*k_w)*(r_I.^2) + T_sI % outside the for loop Temp(Temp == 0 ) = []; plot(1000:10000,T...

25 giorni fa | 1

| accettato

Risposto
Running a function multiple times and recording outputs for each of the runs in one table.
Assuming some random data, the output data can be fit into a table as shown below % some random data data= randi([2 200],12...

26 giorni fa | 0

Risposto
sinc + cos function plot
Delete pi from below line % delete pi from the below line a = (-4:0.001:4); p = 10; f = p*sinc(a) + cos(a) plot(a,f)

27 giorni fa | 0

| accettato

Risposto
Adding fields of two different structs together
part(1) = struct('name', 'x', 'number', 1) part(2) = struct('name', 'y', 'number', 2); part(3) = struct('name', 'z', 'number'...

27 giorni fa | 0

Risposto
Integration with Symbolic Variables
syms theta r a=10; x=a*(1-cos(theta)); y=a*(1-sin(theta)); r=sqrt(x^2+y^2) I = vpaintegral(r,0,2*pi)

27 giorni fa | 0

| accettato

Risposto
Only seven lines of code, the program runs continuously without any results when solving the equation
syms I A B = 0.02;%blocking probability N = 8;%number of channels very huge FN = factorial(N); ACell = solve((A^N)/FN == B*s...

28 giorni fa | 0

Risposto
Not your typical vertcat error. Weird behaviour with it.
load("nlworkspace.mat") m1 = parameters(1) m2 = parameters(2) k1 = parameters(3) k2 = parameters(4) d1 = parameters(5) d2 ...

29 giorni fa | 0

| accettato

Risposto
Change selected item in ListBox
Assign value as output argument to function ParadigmaAuswahlListBoxValue as shown below, and pass it as input argument to functi...

29 giorni fa | 1