Community Profile

photo

VBBV


PEC

Last seen: Today 2017 年からアクティブ

Programming in MATLAB applied to interdisciplinary engineering fields

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • 24 Month Streak
  • Guiding Light
  • Promoter
  • Solver
  • Personal Best Downloads Level 2
  • First Review
  • Thankful Level 5
  • Knowledgeable Level 5
  • Revival Level 3
  • First Answer
  • 5-Star Galaxy Level 1

バッジを表示

Content Feed

表示方法

回答済み
Unable to perform assignment because the left and right sides have a different number of elements.
Since the variable JxL is changing for every value of B in outer loop, you can assign the output of product to JxL as below J...

約10時間 前 | 0

回答済み
Putting a capacitor in the thread of the load distribution (backward and forward method)
You can obtain it by multiplying the Iline and V and display them in table LD = [%Line no. From To R ...

約10時間 前 | 0

回答済み
I want to insert a matrix into RowNames that exist in a table.
h=[2,4,6,8,10,12,14,20,30,50,100,1000]'; t=[2,4,6,8,10,12,14,16,18,20]; u=h*t; q=strcat("T=",string(t'))'; p=strcat("h=",s...

約23時間 前 | 0

| 採用済み

回答済み
I want to send output values from MATLAB to an Excel file
FreqFinal = mean(freq) PeriodFinal = mean(period) error = midline-t amplitudeFinal= mean(max(y)-midline) Data_export = [Fr...

1日 前 | 0

| 採用済み

質問


How can i use intersect function correctly ?
I tried the following code to use intersect function available in Matlab f=@(x)1+cos(x); g=@(x)sin(x); x=-8:.01:8; A = inter...

1日 前 | 2 件の回答 | 0

2

回答

回答済み
Using While Loop For Grouping Pie chart "Slices"
x= [0.66,0.38,0.01,0.01,0.13,0.01,1.38,3.96,1.04,0.01,0.39,0.38,0.36,0.32,2.61,2.73,0.01,0.95,1.94,0.01,0.01,1.18,1.42,0.01,0.37...

2日 前 | 1

| 採用済み

回答済み
Adding prefix to indexe
SourcePath ='/subf1/subf2/subf3/subf4/subf5/subf6/'; index = 1001 : 1002; %iteration for the 7th subfolder for i = 1 :...

3日 前 | 0

| 採用済み

回答済み
Why do I receive 'Error using sym>tomupad' in Line 6 when plotting impulse signal with right time shifting?
%create symbolic functions x, a, b, c, d, e, f_c with independent variable t syms x(t) a(t) h(t) b(t) c(t) d(t) e(t) f_c(t) x(...

3日 前 | 1

| 採用済み

回答済み
Contour not being rendered for non-finite data??
%crack length - for Kanalytical a = 0.1; K = sqrt(pi*a)*1000; %grid for results to look like plate, adjusting for crack edg...

3日 前 | 0

回答済み
Physics costing electricity, KW/KWh
% assume P_rating = 2e3; % 2000 W = 2kW number_units = 50/7.5 % since each unit is treated as 1kWh @ 7.5p per unit run_time...

4日 前 | 0

回答済み
Adding multiple cylinders into the same model PDE Toolbox
model.Geometry = [SC3d VS3d]

4日 前 | 0

回答済み
How do I exit a for loop after logical index is found true in an array?
use inside the if-end statement % check if trajectory goes through the zone result = false; for i = 1:length(xNormalized) ...

4日 前 | 0

| 採用済み

回答済み
How to parameterize function.
syms x y z P = [x^2 +2*y +3*z; x*y -2*z^2] subs(P,{x,y,z},{t,t,t})

5日 前 | 1

回答済み
"Matrix dimensions must agree" when trying to plot the sum of a sin function
s2 = sin((2*m-1)*x)./(2*m-1); Use element wise division

5日 前 | 1

| 採用済み

回答済み
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'.
The element wise power for a scalar should not affect much on your calculation unless vectors are multiplied or raised to power ...

5日 前 | 0

回答済み
Z must be a matrix, not a scalar or vector.
t=0:30 % a vector x=(1+0.25.*cosd(45.*t)).*cosd(t); y=(1+0.25.*cosd(45.*t)).*sind(t); [X,Y] = meshgrid(x,y) % X and Y matr...

5日 前 | 0

回答済み
Could anyone tell me why I am getting an error with "else" in my code. This is my first time using this software and I am very confused.
This is standard syntax for if-else statements in matlab if condtion ... elseif condition ... else ... end

5日 前 | 1

| 採用済み

回答済み
error: Index in position 2 exceeds array bounds (must not exceed 31).
clear all clc %Geometry definition L=0.3; %Length of the The rectangular bar in meter W=0.4; ...

6日 前 | 0

回答済み
Is there a way of getting displayFormula to print multiplication (×) symbols in an equation?
syms a b strEquation = "a*b"; disp(strEquation)

6日 前 | 0

回答済み
Hello all please help me to plot this function
The conditions seem wierd, considering random number series .as inputs m=4 syms i; % t = 50; for t=2:50 x(t)=randi([0...

6日 前 | 0

回答済み
My code is giving me a straight line for values of N other than 5
clear variables close all M = 250; % The length of each function t = -5:0.1:5; y = zeros(1,M); % Initiallize the sum to zero...

6日 前 | 0

回答済み
For loop not stopping
if ismember(-9999,aspect(i,1)) Check using ismember

7日 前 | 0

回答済み
Bar graphs don't group bars if there is only one group in the data
like this ? % Artificial data: Two vertical vectors of height 3 x=reshape(randperm(6),3,2) % Correct grouping into pairs s...

7日 前 | 1

| 採用済み

回答済み
Using listdlg along with case statement
A = [15 22 25 17 7 3 2 2]; B = [17 23 27 15 5 2 1 1]; % ---^^^^^^^^ these values in B are higher compared to A length(B) le...

7日 前 | 0

| 採用済み

回答済み
Change plot scale y axis
u21=[224 224 224 223 218 218 217]; beta1=[0 0.19 0.26 0.38 0.76 0.83 0.9]; plot(beta1,u21,'-*'); xlabel('beta') ylabel('U[V]...

7日 前 | 1

回答済み
Bar graphs don't group bars if there is only one group in the data
% Artificial data: Two vertical vectors of height 3 x=reshape(randperm(6),3,2) % Correct grouping into pairs subplot(1,2,1)...

7日 前 | 0

回答済み
Taking derivative and putting it equal to 0 to find theta.
syms x s h S = (6*s*h) - ((3*s*s*cot(x))/2) + ((3*s*s*sqrt(3)*csc(x))/2) Y = diff(S,x) == 0 % take derivative of equation w....

7日 前 | 0

回答済み
I want help solving differential equations
syms x y(x) eqn = diff(y(x),x)+sqrt((1-y^2)/(1-x^2))==0 cond = [y(0) == 1;y(1) == 0] % check with some other initial conditio...

7日 前 | 0

| 採用済み

回答済み
how to replace/import .mat file with parameter values?
A = load(websave('X','https://in.mathworks.com/matlabcentral/answers/uploaded_files/1213353/torque_for_Sid.mat')) speed = 1000/...

8日 前 | 0

回答済み
fprintf results into 2 columns
clc; clear; close all; principal = 1000;%input('Enter Principal in Dollars: '); years = 5;%input('Enter Number of years: '); ...

8日 前 | 2

| 採用済み

さらに読み込む