Beantwortet
Nested For Loop/Newton Raphson
x0 = 1.5; %x0 represents Mach Number Initial Guess AR = [1.8652 1.5472 1.3327 1.1793 1.0827 1.0258 1.0016 1.0302 1.1091 1.189...

mehr als 3 Jahre vor | 1

Beantwortet
multiplication of matrices with different sizes
Use a cell array for s s{m}=(inv(C*o).*o.*PC.*inv(C.*o).*C);

mehr als 3 Jahre vor | 0

Beantwortet
I can keep getting this error. Index exceeds the number of array elements. Index must not exceed 1.
t = zeros(1,t_reach); %hr X = zeros(1,t_reach); S = zeros(1,t_reach); P = zeros(1,t_reach); V = zeros(1,t_reach); Sa...

mehr als 3 Jahre vor | 0

Beantwortet
How to convert das decimal number to binary code and directly write into matrix columns?
D = [0 4 3 7 2 5 6 7] F = dec2bin(D) % dec2bin use dec2bin function

mehr als 3 Jahre vor | 0

Beantwortet
Getting outputs from a uifigure when a button is pressed
field1 = uidropdown(gui_fig,'Items',opt_list,'Editable','on','Position',[64 143 329 22],'Value','Text1'); uilabel(gui_fig,'te...

mehr als 3 Jahre vor | 0

Beantwortet
How do I plot Streamlines of velocity components of spherical coordinate system?
verts = stream2(Xi,Yi,ui,vi,R,Th); streamline(verts);

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can i fix this code with ploting a function
fplot(@(x) 16*exp(0.25*x),[0 10]) % exp is exponential function,

mehr als 3 Jahre vor | 0

Beantwortet
How can I create a solid line from the data within a for loop?
k =1; for i = 0:0.2:100 U(k) = 1.48/(U_rev + ((r1+d1)+(r2*T)+(d2*p))*(i*50) + (s * log((t*(i*50))+1))); F(k) = (((i*50)^2)/...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to compute taylor expansion using taylortool
Since you are using a Edit box to read the function, it returns a string expression A = 1.176*x*cos(x); % A is variable to rea...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
error getting unable to open file
Begin the filenames with characters , forcedisp1 = readtable("c2.csv"); % use characters first forcedisp2 = readtable("c3.csv...

mehr als 3 Jahre vor | 1

Beantwortet
Matlab Coder error : converting datetime Format error
Use the dateType argument for the datetime function d1 = datetime(DateTime, 'dateType', 'yyyymmdd'); % use the dateType argume...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Hide the size of a table without using disp?
X = randi([0 10],10,1); Y = randi([0 100],10,1); % display table with size T = table(X,Y) % display table without showing s...

mehr als 3 Jahre vor | 0

Beantwortet
integral command with function handle
May be you have function defined with a name integral. Check the working folder where you might have such function and which tak...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
fouriertransform with piecewise function
use double and subs() the result of x figure(1); syms t x = piecewise(-1/2<=t<=1/2, 1-abs(t), t<-1/2, 0 , t>1/2, 0) fplot(x,...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I show the error message when the input data get wrong?
prompt = {'Start Year:','End Year:'}; dlgtitle = 'Year Range (Between 2000 and 2019)'; dims = [1 50]; answer = inputdlg(promp...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I merge the matrices that produce different dimensions in the loop
Use [ ] inside the loop for k = 1:10 A = rand(5,3); B = rand(6,3); C = rand(3,3); D = rand(2,3); Merge(:,:...

mehr als 3 Jahre vor | 0

Beantwortet
hold on producing separate graphs
I = 1:10; figure x = I y1 = 4*I.^2 hold on plot(x,y1) % figure x = I y2 = 4*I.^1 hold on plot(x,y2) % figure x ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I don't know how to make it repeat 10 times and save all input numbers into text file in a human readable format...Can anyone help me pls?? here's my the question and my code:
K = 1:10; for k = 1:numel(K) num = randi([-1 256],1); % input('Enter a number between 0 and 255:') disp("<"+num+">");...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Triangle, sawtooth plot
f = 1 t=0:0.01:5; y = 4*abs(f*t-[floor(f*t+1/2)])-1; plot(t,y) f = 0.2 t= 0:0.01:5; y = 2*(mod((f*t),1/2))*f - 1; plot(...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I plot this function A, i dont have syms so i need to plot it without that! Thanks!
clear all close all A = @(r) -.125*r+(1.125/r); figure(1); fplot(A,[-5 5])

mehr als 3 Jahre vor | 0

Beantwortet
Plot an going down exponential curve by using values only
clear clc Vin=10; Vs=5; Vd=0.7; R1=2200; R2=3300; R3=linspace(0,1e5); x=R2/R1; for m=1:100 I(m)=R3(1,m)/R1; Vout(m)=(...

mehr als 3 Jahre vor | 0

Beantwortet
MATLAB VECTOR FIELDS j COMPONENT
syms x y z i j k t r f = dot([x y z],[i j k]) ff = symfun(f,[x y z i j k]) subs(ff,{x y z},{1 0 0})

mehr als 3 Jahre vor | 1

Beantwortet
Use a for loop to generate function arguments
data_i(i)=myfunction(d,d,d,...)

mehr als 3 Jahre vor | 0

Beantwortet
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
fun = @(x) [0.00 0.00 0.01 -0.01 -0.01 -0.05 0.12 0.16 0.20 0.05 -0.02 0.11 0.06 0.04 -0.08 0.43 -0.26 -0.18 -0.12 -0.12]; ...

mehr als 3 Jahre vor | 0

Beantwortet
Using listdlg, with muitlple selection to plot graphs
list = {'Rain','Sun','Snow','Wind'}; [indx,tf] = listdlg('ListString',list) if tf if strcmp(string(list(indx(1))),"Rai...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I have these two errors when i try and run my script. Any help greatly appreciated
T = [T tmpt] From the error, it is possible that this condition T(find(T==-9.99)) = NaN; % is not satisfied in the last(...

mehr als 3 Jahre vor | 0

Beantwortet
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 ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden