回答済み
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...

3年以上 前 | 0

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

3年以上 前 | 0

| 採用済み

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

3年以上 前 | 0

回答済み
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)/...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

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

3年以上 前 | 1

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

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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,...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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(:,:...

3年以上 前 | 0

回答済み
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 ...

3年以上 前 | 0

| 採用済み

回答済み
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+">");...

3年以上 前 | 0

| 採用済み

回答済み
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(...

3年以上 前 | 0

| 採用済み

回答済み
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])

3年以上 前 | 0

回答済み
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)=(...

3年以上 前 | 0

回答済み
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})

3年以上 前 | 1

回答済み
Use a for loop to generate function arguments
data_i(i)=myfunction(d,d,d,...)

3年以上 前 | 0

回答済み
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]; ...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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(...

3年以上 前 | 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 ...

3年以上 前 | 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...

3年以上 前 | 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...

3年以上 前 | 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...

3年以上 前 | 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...

3年以上 前 | 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

| 採用済み

さらに読み込む