Frage


ListBox MultiSelect simulate always with Ctrl modifier?
dear community, can someone check the ListBox MultiSelect Example from the documentation for me? It does not work for me, I can...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
I need help plotting points with * symbol at intervals equal to Ts = 1/fs = 1/7s (Here is my code)?
to plot with * symbol, add it to the plot command, e.g. plot(1:10,rand(10,1),'*') if you still need a line, add a line style: ...

fast 2 Jahre vor | 0

Beantwortet
How to compress 32 bit bmp images to 8 bit bmp?
you can stretch and compress it on your own, just as you want im=imread('new.png'); im=rgb2gray(im); class(im) imshow(im); ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I find the centre of an image?
you can use regionprops for that and let the function return the centroid. This may be the cetner you are searching for. If you...

fast 2 Jahre vor | 0

Beantwortet
x(t) = -u(t-3)+2u(t+1)-2u(t-1)+u(t-3)
please check your given equation, the last and first term cancel out each other. Nevertheless, i kept both of them in the code b...

fast 2 Jahre vor | 0

Beantwortet
How to capture whole app.UIFigure with exportapp?
you could try to temporarly increase the figure size, export it and restore old behavior %% create ui figure with three but...

fast 2 Jahre vor | 0

Beantwortet
Index exceeds the number of array elements. Index must not exceed 1.
you can initialize your array before the loop a1=0.7;a2=0.1; omega1=20;omega2=40; G=10;C12=0;C21=0.003; dt=0.01; %step siz...

fast 2 Jahre vor | 0

Beantwortet
How to extract data from a table format HTML?
without digging deeper into html, we can use just text seach: d=webread('http://www.knapsackfamily.com/knapsack_core/informatio...

fast 2 Jahre vor | 1

| akzeptiert

Frage


How to ensure that a MATLAB executable can communicate with NI Data Acquisition Cards
Dear community, I want to create a small Matlab GUI which can handle NI DAQ devices. Later, I want to compile my application to...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to interpolate a set of data wher the X size is different for the Y size
you can usw meshgrid to prepare your xq and yq: Y=9:13;X=1:2:5;Z=rand(5,3); [xq,yq]=meshgrid(1:0.5:5,9:0.5:13); inter...

fast 2 Jahre vor | 0

Beantwortet
Find number in vector
find(A>3,1)

fast 2 Jahre vor | 1

| akzeptiert

Frage


Reading uint8 from raw data takes much more RAM then expected
I am trying to read some MB of data from big files of several GB. I am using the follwing code: fid=fopen(filename,'r'); fseek...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Help in 2D plot of coefficients
why not use normal plot command? RealCoefficient= [0.0723, -11.0000, 0.001, 0.0011, 0.0012, 0.0013, 0.0014, 0.0015, 0.0016, 0.0...

fast 2 Jahre vor | 0

| akzeptiert

Frage


audioDeviceReader: error when choosing ASIO driver for input mic
Dear community, I have an error when I want to choose the Device for the audio device reader interactively. Altough the String ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
open software and run script via command line
without looking into the detail, you have to chain commands in the system commands using a & sign also: use the output argument...

fast 2 Jahre vor | 1

Beantwortet
How to put subscript in uilabel text and can I specify location on same line?
for subscript, use other text interpreters, e.g. tex uilabel("Text","K_a","HorizontalAlignment","center",'Interpreter','tex'); ...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
Smoothing curve plot with some data points
x = [-27.59;-32.36;-32.36;-24.99;-25.12;-32.62;-37.62;-42.62;-37.62;-37.62;-40.11;-40.11;-37.61;-33.36;-29.11;-27.11;-25.11;-20....

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to use vertcat with dot notation?
if you just want to have all file names available, you could use { } e.g. in a cell array {filename.name} if you do not need ...

fast 2 Jahre vor | 1

Beantwortet
Action on close of spectrumAnalyzer() object/windows
alright, I now got it. we can close and open the scope Window using show(scope) and hide(scope) und we can check if the scope wi...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Action on close of spectrumAnalyzer() object/windows
my insight so far: I have seen, that a new Process is created, and the Window Name has the title "Spectrum Analyzer". we could ...

fast 2 Jahre vor | 0

Beantwortet
How to plot two .fig file as subplots in a new figure window ?
here a kind of manual solution, adapted from the function given on file exchange: h(1) = openfig('fog.fig','invisible'); ax(1)...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
matrix per minute in plot per hour
you mean something like that? or do you want another format? plot((1:96)/4,rand(96,1)); xticks(0:3:24) xlim([0 24]); xlabel(...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to save a high resolution image in MTALB?
exportgraphics() is available since 2020a which release are you using?

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I make a specific range of numbers and increment?
use colon operator T=100:50:500

fast 2 Jahre vor | 0

Beantwortet
Buffer around a value in a matrix.
A=[ 0 0 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 1 1 0 0]; B=imfilter(A,ones(3...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
efficient way of importing excel sheet
if you activate MultiSelect in uigetfile, you can select more than one file. The resulting variables are then cell arrays with t...

fast 2 Jahre vor | 0

Frage


Action on close of spectrumAnalyzer() object/windows
Dear community, at the moment I am preparing for some real time processing on audio recordings. I want to end the inifinite rec...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
How to sort a part of a given array?
just use indexing to reassign those numbers data=20:-1:1 data(1:5)=sort(data(1:5),'ascend')

fast 2 Jahre vor | 0

Beantwortet
how to create different matrices?
you could split them into multiple 400x1 vectors by this data=rand(30000,1); data=reshape(data,400,1,[]); size(data) you can...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
Summing the values with looping
you could generate all values you asked for with a single expression. if you want the sum until a specific n, use cumsum() on th...

fast 2 Jahre vor | 0

Mehr laden