Beantwortet
Running out of memory
If xls format is not critical requirement, you may want to use fileIO operations and produce a csv (or some text delimited) form...

fast 9 Jahre vor | 0

Beantwortet
Size mismatch for MATLAB expression 'unique'. Expected = 1x1 Actual = 8x1
Size mismatch error is a result of unmatched dimensions in signals. The block being driven by embedded function block is expecti...

fast 9 Jahre vor | 0

Beantwortet
The interpolation interp1 command is taking wrong values.
Generally, Ne and Temax are expected to be vectors. It is not clear why the statement is inside a loop. If you want to find inte...

fast 9 Jahre vor | 0

Frage


Prediction with Narxnet without future inputs
I'm a bit confused if prediction with Narxnet requires knowledge of future input. Documentation defines Narxnet as dependent onl...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How do I calculate the packet delay for a GigE Vision camera to prevent dropped frames?
On my camera (Basler ACE2500 14gm), packetSize setting behaves in a manner opposite to what's been described here. The default p...

etwa 10 Jahre vor | 0

Beantwortet
slope to a circle
For you. Cheers. function coordinates = arc(C,R,inplane,normal,t) % ARC function generates coordinates to draw a circula...

etwa 12 Jahre vor | 0

Frage


Simulink Vehicle Autotransmission Demo
Equation 4 in the demo <http://www.mathworks.in/help/simulink/examples/modeling-an-automatic-transmission-controller.html Modeli...

etwa 12 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
how to create variable PWM in simulink
There is a built-in pwm block that varies dutycycle according to an input sine wave. See 2 and 3 level pwm generator blocks. If ...

mehr als 12 Jahre vor | 0

| akzeptiert

Frage


Force Update a Block Output at Minor Time Steps
I just realised that the output of some blocks (e.g.source blocks like ramp and constant) are updated only at the beginning of a...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How can i pass variables from an m file from the function workspace to the base workspace
In general, if you need to access base workspace while inside a function, you can use evalin. evalin('base','scriptfile'). If t...

mehr als 12 Jahre vor | 0

Beantwortet
How to store every iteration value
1. You dont have to write a loop to get difference values. Just do diff(D). Or, before you do rec2_Wopt(1) = rec2_Wopt(1) + su...

mehr als 12 Jahre vor | 0

Beantwortet
How can I simulate a difference equation in Simulink?
Use N delay blocks in tandem to create y(n-N).

mehr als 12 Jahre vor | 0

Beantwortet
How can I compute Kurtosis
if you have stats toolbox, there is a function called kurtosis. Even otherwise, this should be very straightforward. functi...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
how to make zero padding?
m = [zeros(1,size(m,2)+2); [zeros(size(m,1),1), m, zeros(size(m,1),1)]; zeros(1,size(m,2)+2)]; or even simpler, but needs c...

mehr als 12 Jahre vor | 2

Beantwortet
How to use slider for image processing?
Code looks ok. imopen might be giving you an output that you dont expect. i.e. the "opened" image might the same as the one alre...

mehr als 12 Jahre vor | 0

Frage


Time varying parameters of a State-Space block
Out of curiosity, I tried to implement a lorenz attractor (an nonlinear system) with a statespace block (continuous) with time v...

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
HELP needed! (Error using surf, Z must be a matrix, not a scalar or vector)
ok, that clarifies that you need to use solve. if solve function is giving you a closed form solution for your eqn, use subs to ...

mehr als 12 Jahre vor | 0

Beantwortet
How do i calculate summations using a loop structure?
sum((1:6).^p) use various values of p and you get the result.

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
HELP needed! (Error using surf, Z must be a matrix, not a scalar or vector)
Whoa, I think thats not quite what you want to do. What is the eqn you want to plot? If i'm plotting the eqn z = sin(sqrt(x^2+y...

mehr als 12 Jahre vor | 0

Beantwortet
Getting an Error and is not displaying Image,How to solve this?
Concatenation is not the way to Overlay two images. imshow one image, hold on, and plot the segmented overlay on the same axes u...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
how can i run a function witout facing this error: An array for multiple LHS assignment cannot contain expressions.
just remove {} on nspikes.

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How do I print a formatted matrix without using a loop?
Why not disp(m). %f will sequentially output all nos of the matrix. If you are using textile output, just use dl...

mehr als 12 Jahre vor | 0

Beantwortet
Modelling from Equations in Simulink
There is nothing like you will need this many blocks or you cannot exceed so many. All you need to do is to realise your logic r...

mehr als 12 Jahre vor | 0

Beantwortet
How can I perform multivariable polynomial curve fitting?
I dont think basic Matlab has got that ability. You will need curve fitting toolbox to do surface fitting. See this link: http:/...

mehr als 12 Jahre vor | 0

Beantwortet
Converting simulink blocks to code for a GUI?
You can use set command for callbacks of GUI sliders with handles of the constant blocks to change the block parameter values. N...

mehr als 12 Jahre vor | 0

Beantwortet
Looping through csv Data Sets
Not sure how you want to plot, but in case you want to plot blizzards vs damage for each of the state on a separate figure, here...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Data Acquisition- program oddly resetting SampleRate
Finding out the acquisition rate should be quite straightforward using get(ai,'SampleRate'), where ai is the analoginput object....

mehr als 12 Jahre vor | 0

Frage


Same code, Different results on 3 computers - only simple multiplications and additions involved
I have seen questions and answers posted earlier on why results vary with different versions of OS and libraries, but my problem...

mehr als 12 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Strange results from tic / toc.
Are you sure 'checkFunc' does NOT do a tic somewhere in its code? Anyways, this would be a better way to test: tx = tic; ...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
Out of memory error
There could be many reasons for that error from poor memory management to demanding task. Consider posting your code. A lot is ...

mehr als 12 Jahre vor | 0

Mehr laden