답변 있음
Calculate the duration that variable remains in a specific value
load('tab.mat') logical_array = tab.s==3000; %chose value for speed here bar(tab.t,logical_array) t2 = table; count = 0;...

대략 2년 전 | 0

| 수락됨

답변 있음
Plot a graph with this code.
% Problem2_28.mat % Find the phase shift between 10-Hz sinusoids found in x and y in files % sines1.mat %Check load('sines1....

대략 2년 전 | 0

| 수락됨

답변 있음
why do i get the error using alpha too many output arguments, can anyoen help please.
alpha is a function used in plotting to change transparency. Below I change alpha to Alpha and defined it as a variable equal to...

대략 2년 전 | 0

답변 있음
Creating a file from different-sized files.
Did you want something like this? Note, I attached an import function called importTTfile. load('Line_2.mat') TT = importTTfil...

대략 2년 전 | 0

답변 있음
Getting stuck at Confirm User while installing MATLAB
I would recommend contacting Technical support. https://www.mathworks.com/support/contact_us.html

대략 2년 전 | 0

답변 있음
Unable to perform assignment because the left and right sides have a different number of elements.
VelTren(1,9.81,46) You need to change l to l(i). function [v] = VelTren(v0,a,Lt) l=0:0.1:Lt; v=zeros(1,length(l)); v(1)=v...

대략 2년 전 | 1

| 수락됨

답변 있음
How to change the color of the lamp?
Please see the app attached. Note, you can set limits on your edit fields. I set this one from 1 to 4.

대략 2년 전 | 0

답변 있음
Build array from descriptive data without a loop
Array1 = [10,3,3;1000,178,4]; Array2 = cumsum(Array1,2)

대략 2년 전 | 0

답변 있음
Visualisation of multichannel time series data
Would something like this work? time = 1:.1:50; % 500 data point signal = cos(time); for ii = 1:30 for jj = 1:40 ...

대략 2년 전 | 1

| 수락됨

답변 있음
error using the matrices to plot a graph
The length of some of your columns didn't match up. Original table had 10 rows. Some of the new variables added to the table had...

대략 2년 전 | 0

답변 있음
how to put date and time (exple 02-17-2023 06:05:34) on the x axis of a 3D plot
m = ["Jan-03-2023 06:25:12" 34 65; "Jan-04-2023 02:45:33" 56 34; "Jan-05-2023 07:05:38" 45 234] t = array2table(m) t.Propertie...

대략 2년 전 | 1

| 수락됨

답변 있음
how run generated code from apps
You would want to save the code as a .m file. Then you can call the function with this line: createFit(close) Where close is y...

대략 2년 전 | 0

| 수락됨

답변 있음
In following plots, how can we measure intersect points?
for y=0.1:0.1:0.3 G=[]; B=[]; for a=1:1:100 z=0.3; x=y+sind(a); G=[G x]; b=z+...

대략 2년 전 | 1

| 수락됨

답변 있음
Can't understand you I'm getting this error when using a for loop to add two arrays
One of you variables (P_Pa, p_Pa, or q_Pa) only has one row. So, when you iterate with the for loop, you get an error when i = 2...

대략 2년 전 | 2

답변 있음
Changing the number of rows in a vector by adding repeated rows
V = rand(76,3); V1 = zeros(1064,3); V1(1:76,:) = V; for ii=1:13 index = randperm(76); V1(76*ii+1:76*ii+76,:)= V...

대략 2년 전 | 0

답변 있음
How to save the edited value inside the excel .xlsx file?
Please see app attached. I added filename as a property variable and then added the following: For the Save callback, I added:...

대략 2년 전 | 0

| 수락됨

답변 있음
How can I extract a specific time for a "datetime" table?
load('RESULT.mat') result result.HourSeries = datetime(result.HourSeries,"Format","HH:mm") index = hour(result.HourSeries)=...

대략 2년 전 | 1

| 수락됨

답변 있음
how to set different axis value?
xylim = 0.0055 ; N = 5; x = linspace(-xylim,xylim,N); y = x; [X,Y] = meshgrid(x,y); r = (X.^2 + Y.^2); rho = s...

대략 2년 전 | 1

| 수락됨

답변 있음
finding slope of the graph
I would suggest using the Curve Fitting Toolbox.

대략 2년 전 | 0

답변 있음
How to load the images using the code approach
1. properties folder filename end % Call back for pushbutton to load image [app.filename, app.folder] = uigetf...

대략 2년 전 | 1

| 수락됨

답변 있음
Hi, I am coding something in the app designer. I have tried it a test script and it worked fine but when coding into the app, there seems to be an error . Please Help !
You were not defining your property variables unless the editfields were changed. I added a startup function that pulls the valu...

대략 2년 전 | 0

| 수락됨

답변 있음
How to use tree function from App designer to trigger a map/plot on and off
Have you tried cla? You can obtain this information from the axes handle. See below. Notice handle is saved as variable h. Us...

대략 2년 전 | 0

답변 있음
I have a problem with solve command
The format you are using is no longer supported. Please see documentation for solve. syms x syms y syms z [x,y]=solve(3.*x-...

대략 2년 전 | 0

| 수락됨

답변 있음
the code for a button to dilate and erode the browsed image
tala, Please see the app attached. Let me know if this example answers your question.

대략 2년 전 | 0

답변 있음
App Designer: Multiwindow Apps Issue
Instead of deleting an app, I just make the uifigure invisible, so that I can keep each app's property variables. You can downl...

대략 2년 전 | 0

답변 있음
Help with Simplifying repetitive code
If you have your variables as columns in a table, you could do something like this: t=table; t.RIC = rand(14,1); t.RLT = rand...

대략 2년 전 | 0

답변 있음
How to create two-dimensional boxplots
x = rand(1,30); y = rand(1,30); tiledlayout(1,2) nexttile scatter(x,y,'filled','r'); nexttile boxchart(median(y)*ones(size...

2년 초과 전 | 0

| 수락됨

답변 있음
Matrix processing problem; creating new matrix
matrix = [0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0]; if matrix(1,1) output1 =...

2년 초과 전 | 0

| 수락됨

답변 있음
How can i transfer data from Matlab to Excel?
If you have data in a UITable and want to save it to a spreadsheet, you could create a callback function for a pushbutton to sav...

2년 초과 전 | 0

더 보기