Community Profile # VBBV

### PEC

Last seen: Today Actif depuis 2017

Programming in MATLAB applied to interdisciplinary engineering fields

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

Afficher par

A répondu
I'm running into an error at line 40, which is prompting me that I have an "invalid or deleted object". I'm wondering how to mend this.
P0 = [1,2,3]; P1 = [2,4,5]; P2 = [3,4,5]; P3 = [50,2,3]; P = [P0;P1;P2;P3]; t = linspace(0,1,100); tint = length(t); A = one...

environ une heure il y a | 0

A répondu
how to transform a table with column names into an double array without column names
X = table2array(X(:,2:end)) Try as above

environ 12 heures il y a | 0

A répondu
im trying to model the drive train model of wind turbine, i need to get oscillation and the steady state waveform
Provide all inputs to the equations used for modeling the drive train, clc clear all close all a=3.2; %input('Enter the a =...

environ 18 heures il y a | 0

A répondu
How to build a vector in MATLAB
Labels = 16; r = 6; C1 = 1:Labels C_labels_train = (repelem(C1,r))' C_labels_test = [C_labels_train; C_labels_train; C_labels...

environ 22 heures il y a | 0

A répondu
Hi everyone, why do I receive "Test Results: Incorrect!" even if i'm doing exactly what is shown in the solution? MATLAB Onramp
You are plotting code from lines 9 to 14 if the condition *doPlot == 1*, Instead of 5 to 8. Place the if statement beginning fro...

1 jour il y a | 0

| A accepté

A répondu
Saving results of a for loop in a cell array
NewCell = cell(1,numel(DataFrame)); %creat an empty cell for the results for iAnimal = 1:numel(DataFrame) %repeat for each...

2 jours il y a | 1

| A accepté

A répondu
How to create cp-λ characteristics curve, for different values of the pitch angle β for Wind Turbine block?
c1 = 0.5176; c2 = 116; c3 = 0.4; c4 = 5; c5 = 21; c6 = 0.0068; Beta = linspace(-2,24,10); Lambda = linspace(0,15,20); ...

3 jours il y a | 1

| A accepté

A répondu
Why am I getting an error message on my code?
numThrows = 10; numTrials = 30; [estPiAve, estPiStD] = estPiStats(numThrows,numTrials) % provide all input arguments when ca...

3 jours il y a | 0

A répondu
How do I append my answers in an array, while using loop?
z = 6; w = 5; syms x y eqn1 = x + y + z + w == 13; eqn2 = 2*x + 3*y - w == -1; A = [6 5; zeros(10,2)]; % create matri...

3 jours il y a | 0

| A accepté

A répondu
When defining an anonymous function, how do I utilize cell indexing of an intermediate function?
Try something like below epsTarray = @(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10) ... expression y = epsTarray(n(1),n(2),n(3),n(4),n(5...

4 jours il y a | 0

A répondu
How can I rectify this error? 'Invalid use of Operator.' 'Too many Output arguements'
%Input % MU_X [n x 1] Expected value of x. % SIGMA_X [n x n] Covariance of x. % A [m x n] Linear...

5 jours il y a | 0

A répondu
Issues plotting simple bar graph.
A = [0.1; 0.4; 1.1; 2.2; 2.5; 0.2; 2.5; 2.2; 1.1; 0.4; 0.1]; B = [25; 20; 15; 10; 5; 0; 5; 10; 15; 20; 25]; bar(A); xti...

6 jours il y a | 0

| A accepté

A répondu
The numbers do not appear in standard format despite the writing (format shortG)
Use %f format specifier format shortG Mf=6.480554950317725e+03 Cp_sea=3.976; t_out=100; t_in=25; Qu=Mf*Cp_sea*(t_out-t_...

6 jours il y a | 0

A répondu
what is the meaning of this error? how to stop this error?
If you have function % assuming the below line is not present as per your comments % For context, I am using this as a calli...

6 jours il y a | 0

A répondu
Getting Naan error while integrating with multiple parameters
h=6.63*(10^-34); k=1.381*(10^-23); c=3*(10^8); T=6000; fun = @(x) (2*h*(c.^2)).*(x.^(-5)).*(exp((h.*c)./(k*x*T))-1).^(-1);...

10 jours il y a | 0

A répondu
Error using plot. Data must be numeric, datetime, duration or an array convertible to double.
% syms n A0 = 5/4; An= 0; T = 2; Wo = pi; t=linspace(0,5*T,1000); Arm = 5; hold on for n=1:1:Arm Bn = (5*(-1)^n)/(...

10 jours il y a | 0

A répondu
Multiple subplots having same legend

10 jours il y a | 0

A répondu
How to put NaN in certain row of particular column according to another column having NaN in some row
data.Pyrn2_Avg(isnan(data.u_py)) = NaN; % assign NaN to this line

11 jours il y a | 0

| A accepté

A répondu
how can i solve this angle between vectors?
a = 3; b = 5; c = 7; alpha = acosd((a.^2 + b.^2 - (c).^2)./(2*a*b))

11 jours il y a | 0

A répondu
What is the problem with the below code?
diff30 = (drugs30 - placebo30)./ placebo30 * 100;

11 jours il y a | 1

A répondu
For loops step through time and update variable
C=100; dL=0.01 L=0:dL:0.2; % size 21 A=zeros(size(L)); B=zeros(size(L)); A(1)=300; % initial value for A ...

11 jours il y a | 0

A répondu
How can i plot the graph from the 3 variables equation ?
A = 0:500:2000; B = 0:1:100; [AA BB] = meshgrid(A,B); X = AA.*(BB+25); surf(AA,BB,X) xlabel A ylabel B zlabel X

12 jours il y a | 1

| A accepté

A répondu
Why is my integration output the mathematical expression and not the solution?
func = @(x) ((x.^3.*cos(x./2)+1/2).*(sqrt(4-x.^2))); integral(func,-2,2) If you use *integral* it will work as you expecte...

13 jours il y a | 0

A répondu
How to add number from equation to array and display it on chart
clear all; close all; clc; Time(1) = ; Quantity(1) = ; N0 = 100 ; tD = 5; t = 10; r=log(2)/tD for i=1:length(...

13 jours il y a | 0

| A accepté

A répondu
How to change the position of power of colorbar ?
[X,Y] = meshgrid(-1000:10:1000); Z = exp(-(X.^2+Y.^2)/1E5)*1E6; figure surf(X,Y,Z, 'EdgeColor','none') grid on colormap(h...

14 jours il y a | 1

A répondu
Reference to non-existent field 'data'.
Use small k, in place of K , Matlab is case sensitive P='C:\Users\Lenovo\OneDrive\Desktop\NB_veh_files'; ...

16 jours il y a | 0

A répondu
Function might not be used error
amount=bill-tip;% typo with operator There is a typo for the operator in the above line which presumably makes Matlab think...

17 jours il y a | 1

A répondu
why this loop is not working? Actually p_j value is not changing why?
n = 10;% e.g. input number epsilon_ci = 0.001; epsilon_max = 0.01; xu = 2; fc = 100; D = 1.1; p_i = 0; %outside for loo...

17 jours il y a | 0

A répondu
use green therom to find counter clockwise circulation and outward flux
% Define the vector field F syms x y F = [7*x-3*y, 7*y-3*x]; % Define the integrand as a symbolic expression for Circulatio...

19 jours il y a | 0

A répondu
can you help me to solve this equation?
syms x real P = sqrt(27.8*exp(5*x)-1) == acos((120*x^2+sqrt(2*x))/(17*x-65)); % better to use acos function s = double(vpasol...

19 jours il y a | 0