Feeds
질문
lsqcurvefit not adjusting some parameters as expected
I am trying to fit some data to a 3 parameter curve expressed as . What I am finding when using lsqcurvefit is that it converge...
5년 초과 전 | 답변 수: 2 | 0
2
답변질문
How to handle error in callback function triggered by an event?
Hi All, I have an instance of a class I created that can trigger events. I have other classes that set listeners on this obje...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
OOP: Properties Containing Objects
Hi All, I defined a class called instr (which is short for instrument) that is derived from a handle class. The instr class s...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
Visa and Timeout error handling?
Hi. I am using the instrument control toolbox to create a VISA connection to my instrument using visa('ni','TCPIP0::<i...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
Compiling a matlab function into a C shared .dll library
I have 5 matlab functions that I have compiled into 5 separate shared C .dll to use with an existing software written in C. Each...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
Compiler / MEX using C help
Hi all, I compiled a matlab function using the compiler toolbox into a dll, and I am trying to call it from my C program. For...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
Compiler and shared C library
Hi all, I am trying to understand how to use the Compiler toolbox to distribute a shared C library. What I currently have in ...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to write asynchronously to instrument?
Hi all, I am trying to control an oscilloscope, and I have the following code for setting it up. for Chan = 1:4 f...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
cell array concatenation problem
Hi I am not sure what I am doing wrong. I have the following code. BWL = [200 350 500 1000]*1E6; filename = cell(4,...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Assigning a single value to cell array with logical indexing.
Hi All, I am wondering if the code I have below is optimal for what it does, or if there are better ways to do this. VDI...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
concatenating array using cellstr and repmat
Hi All, I have the following code str = cellstr(char('This','Orthis')); x = round(rand(10,1))+1; output = [repmat(...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
Help with FFT and wvtool
Hi All, I am stumped on this one. I created a filter and used wvtool on it. w_k = kaiser(K,9.5*pi); wvtool(w_k) I th...
11년 초과 전 | 답변 수: 0 | 0
0
답변질문
Parallel toolbox computing question
Hi. I have the parallel computing toolbox and I was curious if the following can be done. I have a for loop that calls 3 fun...
12년 초과 전 | 답변 수: 1 | 0
1
답변질문
append string to each element in string cell array
x_label = '8' '16' '24' '32' '40' How can I append ' GHz' to each element in the cell array? Thanks! Ca...
대략 13년 전 | 답변 수: 2 | 5
2
답변질문
array of ints to cell array of strings?
I was wondering what is the best way to convert an array of integers to a cell array of strings? Thanks.
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
commsrc.pattern help
I am having trouble using commsrc.pattern to generate the following psuedo-random binary signal: Pattern: PRBS7 Bitrate: 28...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
Array of string cells and guide 'string'
I have in a GUIDE generated GUI several places where the user can enter data. This data is validated when the person clicks on a...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
Browse Button in GUIDE issue
Hi, I have a callback function for a Browse button (to select a file) in a GUIDE generated fig: % --- Executes on button pres...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
guide and waitfor selectionchangefcn
Hi. In my GUIDE gui, I have a "RUN" push button, whose callback function runs through a block of conditional statements to check...
대략 13년 전 | 답변 수: 1 | 0
1
답변답변 있음
try and catch help
OOPS! should be two s's in isstruct. getReport(err) in the catch block allowed me to solve it.
try and catch help
OOPS! should be two s's in isstruct. getReport(err) in the catch block allowed me to solve it.
대략 13년 전 | 0
| 수락됨
질문
try and catch help
In a callback function of a GUIDE gui, I have: path = get(handles.path_text,'String') try data = importdata(pat...
대략 13년 전 | 답변 수: 3 | 0
3
답변질문
GUIDE and buttongroup
I have a button group with 2 radio buttons: MHz and GHz. I don't need to run a callback function on selection changes. My GUI a...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
str2num and commas
Hi. str2num doesn't seem to convert '20,000' to 20E3. Instead, it becomes a vector of 2 elements: 20 and 0. Is there a way aroun...
대략 13년 전 | 답변 수: 2 | 0
2
답변질문
string and isinteger
Hi. I created a GUIDE UI and I am trying to determine whether an input into an editable textbox is an integer. If I do: [I,O...
대략 13년 전 | 답변 수: 3 | 0
3
답변질문
conditional statement with ||
Say I have If A && B && C ...do something if A = B = C = true end Is it faster, however to do: If ~(A ||...
대략 13년 전 | 답변 수: 2 | 0
2
답변질문
GUIDE callback question
I have a button group (tag: DBI_ButtonGroup) with two radio buttons (tag1: radio_DBI tag2: radio_non_DBI) My selctionchangefc...
대략 13년 전 | 답변 수: 2 | 0
2
답변질문
GUIDE edit text
I am using an edit text control in guide with a preset string defined. When I run the figure, clicking inside the edit box does...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
get handle of subplot?
After I subplot, how can I get the Position property of the current axis so I can adjust it?
대략 13년 전 | 답변 수: 2 | 0
2
답변답변 있음
count number of occurences of character in string?
I suppose this will actually work. v = '30.44.532.56'; length(strfind(v,'.'))
count number of occurences of character in string?
I suppose this will actually work. v = '30.44.532.56'; length(strfind(v,'.'))
대략 13년 전 | 1
질문
count number of occurences of character in string?
Is there a function/method for counting the number of times a specific character occurs in a string? Say v = '30.44.532.56'; ...
대략 13년 전 | 답변 수: 3 | 0