Answered
Loop that I am trying to get rid off
I wonder if you can use interp1(). Basically, it is a look up operation, right? It will fill NaNs for dates outside of Ratings. ...

15 years ago | 1

Answered
Output with higher sampling rate in simulink
10Hz sine wave signal means the period is 0.1 second. I would say your step size shall be at least one tenth of it to be meaning...

15 years ago | 0

Answered
contour plot of existing data
what about contour()?

15 years ago | 1

| accepted

Answered
Batch simulink problem
I am not sure. Memory could be the reason. To solve the problem, is it practical for you to put "clear all" or some types of cle...

15 years ago | 0

Answered
How to pass value to params of masked subsystem from m files and restore the output from simulink operation each time?
It is true that the parameters inside a masked subsystem are isolated from the base workspace. But those parameters are supposed...

15 years ago | 1

| accepted

Answered
Reading data from a specified point in a file
%% clc fid=fopen('test.txt','rt'); line=fgetl(fid); while ~feof(fid) && ~any(strfind(line,'here')) line=fg...

15 years ago | 0

| accepted

Answered
Initial state vector "X0" must be a real vector of length 70
Go to your Simulink model, select menu "Simulation">"Configuration Parameters ...", click "Data Import/Export" at the left colum...

15 years ago | 0

| accepted

Answered
Signal processing
Your code is wrong. I think you meant y is 4 samples lagging behind x. But your y is -4 (in amplitude) of x. The code below gene...

15 years ago | 1

Answered
??? Error using ==> times Matrix dimensions must agree.
A is 1x21 array, F is 1x201 array. That is why.

15 years ago | 0

Answered
How to save parameters of masked subsystem to workspace
By default, signal on output port "Out1" is logged into workspace as "yout". After every iteration of your sim() run, you can ch...

15 years ago | 1

| accepted

Answered
How to set step time for using Repeating sequence to create high frequency triangular waveform
The frequency of your pulse signal is 20KHZ which means the period is 50us. If the "pulse signal" is actually a triangular wavef...

15 years ago | 0

Answered
dec2bin
I'd like to put the question this way. See the example first. >> dec2bin(2^55+[0 1 2 3 4 5 6 7 8 9 10 100 1000]) ans = ...

15 years ago | 0

Answered
Simulink 'x' bit shifter - serial to parallel
# <http://www.mathworks.com/help/toolbox/comm/ref/integertobitconverter.html> # <http://www.mathworks.com/help/toolbox/comm/ref...

15 years ago | 0

| accepted

Answered
partition of matrix element
%% for k=1:10 a=dec2bin(k,5); b=str2num(a(:)); c=b' end

15 years ago | 0

Answered
How to plot a cross-section of a surface plot
I think the function you are looking for is interp2(). For example: %% M=10; N=10; X=-1:1/M:1; Y=-1:1/N:1; Z=membr...

15 years ago | 1

| accepted

Answered
find where both matrices match
I am having a second thought. The first solution requires: # no duplicate dates in A alone and in B alone. # the dates in A and...

15 years ago | 0

| accepted

Answered
datenum question - combination of date and time
From the documentation of datestr(). "For date formats that specify only a time (i.e., dateform numbers 13, 14, 15, and 16), MAT...

15 years ago | 0

| accepted

Answered
Cant save variable?? "To save this variable, use the -v7.3 switch."
type "help save" you will see some explanation regarding save Version Compatibility Options. The thing mentioned for v7.3 is tha...

15 years ago | 0

Answered
Line 129 in saveas function is slow!
It is true for me too. That line consumes more than half of the time if I save the plot to a .fig file and repeat it a dozen tim...

15 years ago | 0

Answered
export to excel
Okay, sounds like not a difficult data structure. Take a look at the example I made up, if similar, you can go ahead. This way, ...

15 years ago | 0

Answered
Error with dynamically created m-files
This is basically the same question as your previous one. Did Jan's solution solve the problem?

15 years ago | 0

Answered
FOR LOOP MATLAB
Open MATLAB and type "help for" in the Command Window, read the text and there is a good example to show you how to do it. My g...

15 years ago | 0

| accepted

Answered
export to excel
You may need to use struct2cell() to convert your structure to cell array and then use xlswrite(). Please give an example of you...

15 years ago | 0

Answered
URL encoding function
Yes, it is weird. urlencode() is an one-line function. type "edit urlencode.m" to see if you can change the encoding method and ...

15 years ago | 1

Answered
Trouble with variable-input sizes in Embedded Matlab
The number of ports and the port width of a Simulink block need to be fixed before the simulation starts. "Pairs" is the output ...

15 years ago | 0

Answered
Problem with animated a 'surf' plot
Well, I don't have your data. But I tried and it did show the animation. Maybe check your data Psi? I used this and then run ...

15 years ago | 0

Answered
Generic Angular Gauge : two needles
See the documentation here: <http://www.mathworks.com/help/toolbox/gauges/fp16260.html>

15 years ago | 0

| accepted

Answered
Communications System ToolboxI
For the sake of asking a good question, you could at least provide the link of the Mathworks web page so others know what are yo...

15 years ago | 0

Answered
Excel writing Problem: find correct row, write to empty cell
Watch this video: <http://blogs.mathworks.com/videos/2010/09/02/using-debugger-to-walk-through-code/> You can't expect an exa...

15 years ago | 1

Load more