Community Profile VBBV

PEC

Last seen: Today Active since 2017

Programming in MATLAB applied to interdisciplinary engineering fields

Statistics

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

View by

Implicit matrix expansion correction
a = rand(11,21); b = rand(21,1); c = 21 a = reshape(a(a~=b.'),[],c) There is no error with your code. Maybe it's version...

8 hours ago | 0

Nothing shows up on plot?
MM = 24; days = 1;i =1;% set value to counter while MM > 0 m(i) = MM; MM = MM - randi(5); MM = MM - 7; ...

12 hours ago | 0

Ode45 not working in matlab 2021b
zdot=inline('[z(2);-0.2*z(2)-sin(z(1))]','t','z') Check your zdot function. There is no variable with _t_ defined in it...

1 day ago | 0

How can I remove some specific lines from this contour plot
Easy way is that you can select "Edit" option from the figure window after plotting and click on figure properties. Then click o...

1 day ago | 1

| accepted

Reading all values as a string from excel file

1 day ago | 0

Set the initial condition source to external and try

2 days ago | 0

Set the initial condition source to external from drop down menu.

2 days ago | 0

Error when indexing 3D cell array: Index in position 2 exceeds array bounds
N = block_size*ceil(numel(participants{i,2})/block_size); Try changing this line to above. It seems you are using _numel_ f...

2 days ago | 0

How Do I Properly Format my Bar Graph?
x = [379.5 , 1138.3 , 1897.2 , 2656]; % your values y = rand(size(x)); bar(x, y) xlabel('Number in the Thousands (ie 4,000)'...

3 days ago | 1

Getting a blank graph
syms theta1 grid on w2 = @(theta1) ((cos(pi/6)*(sec(theta1)).^2)./ ((tan(theta1)).^2+(cos(pi/6)).^2))*2*pi; theta1 = 0:pi...

4 days ago | 0

why do I keep getting this error message
t = 0:1/320:0.5; x = @(t) 6*cos(4*pi*t)+2*sin(16*pi*t) -4*sin(32*pi*t);% define anonymous function x(t) plot(x(t))

4 days ago | 0

Plotting with dsolve for ODE
clear clc [x,y] = meshgrid(-5:0.4:5,-5:0.4:5); dydx = x.^2+y.^2-1; L = sqrt(1+dydx.^2); quiver(x,y,1./L,dydx./L,'k') hold...

5 days ago | 0

Hi COMM, How can I hold only one plot while updating the rest in a figure ? E.g. I want to keep (x,f) plot fixed , while keeping the current value for the animated plot
for k=1:length(x) plot(x(1:k),f(1:k),'or') axis([SSmin SSmax 0 30]) pause(2) end Check with this

6 days ago | 0

the for loop is only giving me the last value
North_20170401 = zeros(360,6); N_Y_K_20170401 = zeros(360,6); for i = 9 :15 : 359 %for j = 1:1:24 disp( Data_2...

6 days ago | 0

matlab 'colorbar' error
This syntax does not seem to be supported in Matlab axis('ij') See what you get if you change it to axis ij

6 days ago | 0

Error in using diff for derivative
t = f(a); while (true) if (gradient(t) ~= 0) b = a - t./gradient(t); if (abs(b-a) <= error) ...

6 days ago | 0

How ro divide a scalar by a excel data and plot the result?
X= 51./data(:,4); Use the element wise division operator

7 days ago | 0

| accepted

add new row to table with missing values
V.name = "Ann"; V.city = "Berlin"; V.age = 24; V.height = 172; T1 = struct2table(V); V2.name = "Luka"; V2.city = "Tokyo"...

7 days ago | 0

How do I extract a vector from a single field in a structured variable?
folder_names = struct('name',['MH';'TM';'JW']) participant_ID = folder_names.name Check with this

7 days ago | 0

How can ı solve invalid indexing or function
clc; clear all; syms nw W x Q(x) Y Qo ode1=diff(Q,x)== -nw*W*Y; cond1 = Q(0)== 0; cozum1(x)=dsolve(ode1,cond1); cozum1=s...

8 days ago | 0

Index exceeds the number of array elements. Index must not exceed 1.
z(i+1)=z(i)+(1/6*(k1_hiz(i)+2*k2_hiz(i)+2*k3_hiz(i)+k4_hiz(i))); v(i+1)=v(i)+(1/6*(k1_ivme(i)+2*k2_ivme(i)+2*k3_ivm...

8 days ago | 1

Couette flow between two plate
dpdx= -2:0.1:2; miu = 1; y = linspace(0,1,length(dpdx)) vv = 0.25*miu*dpdx.*y.^2 v = 0.5*miu*dpdx.*y plot(y,v,y,vv) lege...

10 days ago | 1

Control systems failing to plot
Check if you have defined _bode_ as variable in your program.

11 days ago | 0

Need a help to design a block.
If there is no standard block for flow rate in (Smmulink or Simscape)library, then you can define 2 variables as signals. One fo...

11 days ago | 0

| accepted

Matlab code - can anyone guide me how to sort this kind of error, I am new to MATLAB and trying to create an interface for a audio listening experiment
function varargout = TEST(varargin) % TEST MATLAB code for TEST.fig % TEST, by itself, creates a new TEST or raises the e...

12 days ago | 0

| accepted

How to plot subset of X-axis names on bar plot?
plotNamesD = plotNames(1:kId);% use the for loop index plotDataD = plotData(1:kId); bar(plotNamesD,plotDataD); hold ...

13 days ago | 0

| accepted

Question

Does MATLAB mobile version have different features ?
Have anyone tried MATLAB mobile for android OS ? Does it have any different features from regular matlab software ?

14 days ago | 0 answers | 0