已回答
How can I calculate a formula h(t)=4.0+6.0te^-0.5t-4.0e^-0.25cos(0.75pi.t)?
You need to make sure all terms that are multiplied use *. Also replace e with 10^ assuming the e is exponent notation. t = 1:1...

3 years 前 | 0

| 已接受

已回答
History of opened m-files
try open(fullfile(prefdir, 'matlab.prf'))

3 years 前 | 0

已回答
Customized Markers Edge and Face Colours of a scatter plot SEPARATELY
load hospital hospital x = hospital.Age; y = hospital.Weight; g = {hospital.Sex,hospital.Smoker}; h=gscatter(x,y,g,'gbmc','...

3 years 前 | 0

已回答
how to remove the tiny white pixels around the rectangles
Img = imread('originalImage.png'); imshow(Img) You can also filter based on area of objects Img = bwareafilt(imbinarize(Img),...

3 years 前 | 0

| 已接受

已回答
3 double images stored in a matrix
m1 = rand(256); m2 = rand(256); m3 = rand(256); size(m1) size(m1(:)) M(:,1) = m1(:); M(:,2) = m2(:); M(:,3) = m3(:); ...

3 years 前 | 1

| 已接受

已回答
How to implement tic, toc and pause in audioPlugins?
If you are trying to create a UI, you could create an app with App Designer as shown attached. Let me know if this addresses you...

3 years 前 | 0

已回答
Append data to 3rd dimension in loop
Assuming you have 68 files that are distinguished based on the year and the above is only looking at 33 of the files/years. 3D ...

3 years 前 | 0

| 已接受

已回答
I need help to execute a triple integral
Your value for xmax needs to be a floating-point array. syms s r m; fun = @(s,m,r)(r.*exp(-(s.^2/2+1.727*(m-5))))./(sqrt(r.^2-...

3 years 前 | 0

已回答
Read/write georeferenced image
Can you try this below? [A,R] = readgeoraster('input_image.tif'); O = A*2; %any operation you like info = geotiffinfo('input_...

3 years 前 | 0

| 已接受

已回答
How do you remove non-integer values from a colorbar?
Let's say this is an image with a colorbar with non-integer values: Img = randi(255,25); imagesc(Img) h=colorbar; h.Ticks = ...

3 years 前 | 1

已回答
How to work with the current point feature in app designer?
Please see the app attached with the script for the callback function. Let me know if this addresses your problem. Note, I also...

3 years 前 | 0

已回答
How to show data in a textField on app designer?
It should be app.TextArea.Value = "testing";

3 years 前 | 0

| 已接受

已回答
3D shape for rabbit
That is the Stanford Bunny. Available for download here: http://graphics.stanford.edu/data/3Dscanrep/

3 years 前 | 1

已回答
Trying to Customize a heatmap color bar and thresholds
m=30*rand(30)-15; surf(m,'FaceColor','interp') cmap = [1 0 0; 1 1 1;1 1 1; 1 1 1; 1 1 1; 0 0 1]; colorbar caxis([-15 15]) ...

3 years 前 | 0

| 已接受

已回答
How to change folders in MATLAB App Designer ?
pwd gives the present working directory. The code saves it as aux_dir. aux_dir = pwd The line below appends aux_dir with the s...

3 years 前 | 0

已回答
Axes box incompletely copied to clipboard
Have you tried getframe? h = getframe(hax) Image = h.CData; You can save the Image to PowerPoint as shown below (Note, you wi...

3 years 前 | 1

已回答
How to match colorbar with colormap ranges in surf?
io_V1_mat=linspace(1000,100000,10); RL_mat=linspace(1000,1000000,10); VL=[2000*rand(10,4) 5000*rand(10,6)]; surf(io_V1_ma...

3 years 前 | 0

| 已接受

已回答
Export images and PDF in App Designer
If you have the image displayed on an axes, you can do the following: h=getframe(app.UIAxes) h.cdata If you want to make a re...

3 years 前 | 0

已回答
Passing arguments between 2 standalone apps
Please see the links below: Create Multiwindow Apps in App Designer Share Data in Multiwindow Apps For an example, see one of...

3 years 前 | 0

已回答
How to get the current Axes.View after using rotate3d interaction in MATLAB appdesigner?
Please see the attached app and scripts. I created a .m file for each callback function. Let me know if you have any questions. ...

3 years 前 | 0

已回答
how can I plot the following graph
z = linspace(1,3500,100); n = 3000*rand(100,5); date = {'05-Mar';'12-Mar';'19-Mar';'26-Mar';'02-Apr'}; f=figure; axes("YDi...

3 years 前 | 0

已回答
Add data tips to figure using code
figure img = rand(800,1000); h = imagesc(img); d = datatip(h); d.DataIndex=353*800+355; d.Location = "northwest"; d2 = d...

3 years 前 | 0

| 已接受

已回答
How to scatter plot when the values are i.e 1,1 and 1,10 grid
What do you want on your y and x axes? sparams.frequency_GHz = 10*rand(41,16); delta = rand(41,16); This one separates the ...

3 years 前 | 0

| 已接受

已回答
How to export data and plot from app designer to excel?
Please see the app attached. You can use writetable to save your data to an Excel file. You can use xlswritefig found on the Fil...

3 years 前 | 0

| 已接受

已回答
Preview in MATLAB GUI
Please see Previewing Data in Custom GUIs. You can use the command: preview(vid, hImage); where hImage is the handle to the i...

3 years 前 | 0

| 已接受

已回答
Previous legend replaces the new one in a plot, why?
Were you changing the location of the legend as shown below? I made a quick app (attached) using the approach below. plot(rand(...

3 years 前 | 0

已回答
Matching the two columns of two different tables and to combine the common values in second table.
You can use innerjoin or join. See Join Tables.

3 years 前 | 0

| 已接受

已回答
highlighting a section of a plot
Here is another approach using area function. x = linspace(500, 4000); y = sin(x); Note, this is only one point, so I illustr...

3 years 前 | 2

已回答
Algorithm to identify certain peaks at certain loation is a graph
You can get the values and index of the peaks and apply the x and y thresholds as shown below: plot (x,y,t,D); [v,idx]=findpea...

3 years 前 | 1

| 已接受

已回答
My App does not plot the data i read, why?
You need to get rid of clear on line 60. This removes the uicomponents from the "app" variable. This prevents you from plotting ...

3 years 前 | 0

| 已接受

加载更多